forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move FakeDisplay* from display/manager to their own component
Ozone platforms should not depend on ui/display/manager since that is a high level build target that ultimately can depend on ozone again, creating a dependency cycle. This is a followup to previous "fix one instance" that fixes all the instances, which I hope will be enough to break the cycle blocking https://chromium-review.googlesource.com/c/chromium/src/+/1538507 For path changes in ash: TBR=jamescook@chromium.org Change-Id: Ice1d8b21e9bc1709c07bd37943857b07c6093798 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1553424 Commit-Queue: Daniel Bratell <bratell@opera.com> Reviewed-by: Daniel Nicoara <dnicoara@chromium.org> Reviewed-by: Michael Spang <spang@chromium.org> Auto-Submit: Daniel Bratell <bratell@opera.com> Cr-Commit-Position: refs/heads/master@{#650472}
- Loading branch information
1 parent
c875d63
commit 249416b
Showing
30 changed files
with
109 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Copyright 2019 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
import("//build/config/jumbo.gni") | ||
import("//build/config/ui.gni") | ||
|
||
# This target contains dummy or fake classes that can be used as | ||
# placeholders when lacking something better, or for testing. | ||
jumbo_component("fake") { | ||
sources = [ | ||
"fake_display_delegate.cc", | ||
"fake_display_delegate.h", | ||
"fake_display_export.h", | ||
"fake_display_snapshot.cc", | ||
"fake_display_snapshot.h", | ||
] | ||
|
||
configs += [ "//build/config/compiler:wexit_time_destructors" ] | ||
|
||
defines = [ "FAKE_DISPLAY_IMPLEMENTATION" ] | ||
|
||
deps = [ | ||
"//base", | ||
"//skia", | ||
"//third_party/re2", | ||
"//ui/display", | ||
"//ui/display/types", | ||
"//ui/display/util", | ||
"//ui/gfx/geometry", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright 2019 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef UI_DISPLAY_FAKE_FAKE_DISPLAY_EXPORT_H_ | ||
#define UI_DISPLAY_FAKE_FAKE_DISPLAY_EXPORT_H_ | ||
|
||
// Defines FAKE_DISPLAY_EXPORT so that functionality implemented by | ||
// the ui/display/fake module can be exported to consumers. | ||
|
||
#if defined(COMPONENT_BUILD) | ||
|
||
#if defined(WIN32) | ||
|
||
#if defined(FAKE_DISPLAY_IMPLEMENTATION) | ||
#define FAKE_DISPLAY_EXPORT __declspec(dllexport) | ||
#else | ||
#define FAKE_DISPLAY_EXPORT __declspec(dllimport) | ||
#endif | ||
|
||
#else // !defined(WIN32) | ||
|
||
#if defined(FAKE_DISPLAY_IMPLEMENTATION) | ||
#define FAKE_DISPLAY_EXPORT __attribute__((visibility("default"))) | ||
#else | ||
#define FAKE_DISPLAY_EXPORT | ||
#endif | ||
|
||
#endif | ||
|
||
#else // !defined(COMPONENT_BUILD) | ||
|
||
#define FAKE_DISPLAY_EXPORT | ||
|
||
#endif | ||
|
||
#endif // UI_DISPLAY_FAKE_FAKE_DISPLAY_EXPORT_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.