summaryrefslogtreecommitdiffstats
path: root/ash/host/ash_window_tree_host.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-15 18:32:23 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-15 18:32:23 +0000
commit1b4c747749bc8cc46ed2b9006d2f82b6c511e7c4 (patch)
treedadc320dc0f37c5dd756aaee193a72b8697c09b8 /ash/host/ash_window_tree_host.h
parent9eab79b4434f1f4346767257af80f066116706f5 (diff)
downloadchromium_src-1b4c747749bc8cc46ed2b9006d2f82b6c511e7c4.zip
chromium_src-1b4c747749bc8cc46ed2b9006d2f82b6c511e7c4.tar.gz
chromium_src-1b4c747749bc8cc46ed2b9006d2f82b6c511e7c4.tar.bz2
Makes construction of (ash)RemoteWindowTreeHostWin explicit
I need to do this as I need to pass in state to the constructor and I can't do that with lazy construction. This makes creation a little saner anyway. I'm not happy about the static setting the HWND. I'll see if I can clean that up later. BUG=none TEST=none R=ananta@chromium.org Review URL: https://codereview.chromium.org/277753002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/host/ash_window_tree_host.h')
-rw-r--r--ash/host/ash_window_tree_host.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/ash/host/ash_window_tree_host.h b/ash/host/ash_window_tree_host.h
index 00626db..1d1513b 100644
--- a/ash/host/ash_window_tree_host.h
+++ b/ash/host/ash_window_tree_host.h
@@ -19,15 +19,17 @@ class Rect;
}
namespace ash {
+struct AshWindowTreeHostInitParams;
class RootWindowTransformer;
class ASH_EXPORT AshWindowTreeHost {
public:
- // Creates a new AshWindowTreeHost. The caller owns the returned value.
- static AshWindowTreeHost* Create(const gfx::Rect& initial_bounds);
-
virtual ~AshWindowTreeHost() {}
+ // Creates a new AshWindowTreeHost. The caller owns the returned value.
+ static AshWindowTreeHost* Create(
+ const AshWindowTreeHostInitParams& init_params);
+
// Toggles the host's full screen state.
virtual void ToggleFullScreen() = 0;