Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: ash/display/display_controller.h

Issue 277753002: Makes construction of (ash)RemoteWindowTreeHostWin explicit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/ash.gyp ('k') | ash/display/display_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_controller.h
diff --git a/ash/display/display_controller.h b/ash/display/display_controller.h
index fb61b84b9101624f4dc79fca5236cee22542f9cc..00c1ac60309ac718e18964cc8ecaa4d66f4d4d84 100644
--- a/ash/display/display_controller.h
+++ b/ash/display/display_controller.h
@@ -38,6 +38,7 @@ class Insets;
namespace ash {
class AshWindowTreeHost;
+struct AshWindowTreeHostInitParams;
class CursorWindowController;
class DisplayInfo;
class DisplayManager;
@@ -92,8 +93,9 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver,
return virtual_keyboard_window_controller_.get();
}
- // Create a WindowTreeHost for the primary display.
- void CreatePrimaryHost();
+ // Create a WindowTreeHost for the primary display. This replaces
+ // |initial_bounds| in |init_params|.
+ void CreatePrimaryHost(const AshWindowTreeHostInitParams& init_params);
// Initializes all displays.
void InitDisplays();
@@ -169,7 +171,9 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver,
// Creates a WindowTreeHost for |display| and stores it in the
// |window_tree_hosts_| map.
- AshWindowTreeHost* AddWindowTreeHostForDisplay(const gfx::Display& display);
+ AshWindowTreeHost* AddWindowTreeHostForDisplay(
+ const gfx::Display& display,
+ const AshWindowTreeHostInitParams& params);
void OnFadeOutForSwapDisplayFinished();
« no previous file with comments | « ash/ash.gyp ('k') | ash/display/display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698