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

Side by Side Diff: ui/aura/remote_window_tree_host_win.h

Issue 273073002: Changes code using Compositor to pass in ContextFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tooltip on chromeos 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/aura/remote_window_tree_host_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ 5 #ifndef UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_
6 #define UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ 6 #define UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 void HandleWindowSizeChanged(uint32 width, uint32 height); 165 void HandleWindowSizeChanged(uint32 width, uint32 height);
166 166
167 // Returns the active ASH root window. 167 // Returns the active ASH root window.
168 Window* GetAshWindow(); 168 Window* GetAshWindow();
169 169
170 // Returns true if the remote window is the foreground window according to the 170 // Returns true if the remote window is the foreground window according to the
171 // OS. 171 // OS.
172 bool IsForegroundWindow(); 172 bool IsForegroundWindow();
173 173
174 protected: 174 protected:
175 RemoteWindowTreeHostWin(); 175 explicit RemoteWindowTreeHostWin(ui::ContextFactory* context_factory);
176 virtual ~RemoteWindowTreeHostWin(); 176 virtual ~RemoteWindowTreeHostWin();
177 177
178 private: 178 private:
179 // IPC message handing methods: 179 // IPC message handing methods:
180 void OnMouseMoved(int32 x, int32 y, int32 flags); 180 void OnMouseMoved(int32 x, int32 y, int32 flags);
181 void OnMouseButton(const MetroViewerHostMsg_MouseButtonParams& params); 181 void OnMouseButton(const MetroViewerHostMsg_MouseButtonParams& params);
182 void OnKeyDown(uint32 vkey, 182 void OnKeyDown(uint32 vkey,
183 uint32 repeat_count, 183 uint32 repeat_count,
184 uint32 scan_code, 184 uint32 scan_code,
185 uint32 flags); 185 uint32 flags);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 // Current size of this root window. 295 // Current size of this root window.
296 gfx::Size window_size_; 296 gfx::Size window_size_;
297 297
298 DISALLOW_COPY_AND_ASSIGN(RemoteWindowTreeHostWin); 298 DISALLOW_COPY_AND_ASSIGN(RemoteWindowTreeHostWin);
299 }; 299 };
300 300
301 } // namespace aura 301 } // namespace aura
302 302
303 #endif // UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ 303 #endif // UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_
OLDNEW
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/aura/remote_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698