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

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

Issue 12342028: make menus, bubbles, etc. top level windows on aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; 160 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE;
161 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, 161 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds,
162 const gfx::Point& dest_offset, 162 const gfx::Point& dest_offset,
163 SkCanvas* canvas) OVERRIDE; 163 SkCanvas* canvas) OVERRIDE;
164 virtual bool GrabSnapshot( 164 virtual bool GrabSnapshot(
165 const gfx::Rect& snapshot_bounds, 165 const gfx::Rect& snapshot_bounds,
166 std::vector<unsigned char>* png_representation) OVERRIDE; 166 std::vector<unsigned char>* png_representation) OVERRIDE;
167 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; 167 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE;
168 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 168 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
169 virtual void PrepareForShutdown() OVERRIDE; 169 virtual void PrepareForShutdown() OVERRIDE;
170 virtual void SetHostWindowExpansion(const gfx::Rect& extra) OVERRIDE;
170 171
171 // Helper function to dispatch a keyboard message to the desired target. 172 // Helper function to dispatch a keyboard message to the desired target.
172 // The default target is the RootWindowHostDelegate. For nested message loop 173 // The default target is the RootWindowHostDelegate. For nested message loop
173 // invocations we post a synthetic keyboard message directly into the message 174 // invocations we post a synthetic keyboard message directly into the message
174 // loop. The dispatcher for the nested loop would then decide how this 175 // loop. The dispatcher for the nested loop would then decide how this
175 // message is routed. 176 // message is routed.
176 void DispatchKeyboardMessage(ui::EventType type, 177 void DispatchKeyboardMessage(ui::EventType type,
177 uint32 vkey, 178 uint32 vkey,
178 uint32 repeat_count, 179 uint32 repeat_count,
179 uint32 scan_code, 180 uint32 scan_code,
180 uint32 flags, 181 uint32 flags,
181 bool is_character); 182 bool is_character);
182 183
183 RootWindowHostDelegate* delegate_; 184 RootWindowHostDelegate* delegate_;
184 IPC::Sender* host_; 185 IPC::Sender* host_;
185 scoped_ptr<ui::ViewProp> prop_; 186 scoped_ptr<ui::ViewProp> prop_;
186 187
187 // Saved callbacks which inform the caller about the result of the open file/ 188 // Saved callbacks which inform the caller about the result of the open file/
188 // save file operations. 189 // save file operations.
189 OpenFileCompletion file_open_completion_callback_; 190 OpenFileCompletion file_open_completion_callback_;
190 OpenMultipleFilesCompletion multi_file_open_completion_callback_; 191 OpenMultipleFilesCompletion multi_file_open_completion_callback_;
191 SaveFileCompletion file_saveas_completion_callback_; 192 SaveFileCompletion file_saveas_completion_callback_;
192 193
193 DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin); 194 DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin);
194 }; 195 };
195 196
196 } // namespace aura 197 } // namespace aura
197 198
198 #endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ 199 #endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698