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

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

Issue 58853004: [win8] Force browsers created with Chrome in Metro mode to be on the Ash desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move from browser_commands to BrowserWindow Created 7 years, 1 month 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
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | ui/aura/remote_root_window_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_ROOT_WINDOW_HOST_WIN_H_ 5 #ifndef UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_
6 #define UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ 6 #define UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 const SaveFileCompletion& on_success, 135 const SaveFileCompletion& on_success,
136 const FileSelectionCanceled& on_failure); 136 const FileSelectionCanceled& on_failure);
137 137
138 void HandleSelectFolder(const base::string16& title, 138 void HandleSelectFolder(const base::string16& title,
139 const SelectFolderCompletion& on_success, 139 const SelectFolderCompletion& on_success,
140 const FileSelectionCanceled& on_failure); 140 const FileSelectionCanceled& on_failure);
141 141
142 // Returns the active ASH root window. 142 // Returns the active ASH root window.
143 Window* GetAshWindow(); 143 Window* GetAshWindow();
144 144
145 // Returns true if the remote window is the foreground window according to the
146 // OS.
147 bool IsForegroundWindow();
148
145 private: 149 private:
146 explicit RemoteRootWindowHostWin(const gfx::Rect& bounds); 150 explicit RemoteRootWindowHostWin(const gfx::Rect& bounds);
147 virtual ~RemoteRootWindowHostWin(); 151 virtual ~RemoteRootWindowHostWin();
148 152
149 // IPC message handing methods: 153 // IPC message handing methods:
150 void OnMouseMoved(int32 x, int32 y, int32 flags); 154 void OnMouseMoved(int32 x, int32 y, int32 flags);
151 void OnMouseButton(int32 x, 155 void OnMouseButton(int32 x,
152 int32 y, 156 int32 y,
153 int32 extra, 157 int32 extra,
154 ui::EventType type, 158 ui::EventType type,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // State of the keyboard/mouse at the time of the last input event. See 264 // State of the keyboard/mouse at the time of the last input event. See
261 // description of SetEventFlags(). 265 // description of SetEventFlags().
262 uint32 event_flags_; 266 uint32 event_flags_;
263 267
264 DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin); 268 DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin);
265 }; 269 };
266 270
267 } // namespace aura 271 } // namespace aura
268 272
269 #endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ 273 #endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser_ui.gypi ('k') | ui/aura/remote_root_window_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698