OLD | NEW |
---|---|
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
159 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, | 159 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, |
160 const gfx::Point& dest_offset, | 160 const gfx::Point& dest_offset, |
161 SkCanvas* canvas) OVERRIDE; | 161 SkCanvas* canvas) OVERRIDE; |
162 virtual bool GrabSnapshot( | 162 virtual bool GrabSnapshot( |
163 const gfx::Rect& snapshot_bounds, | 163 const gfx::Rect& snapshot_bounds, |
164 std::vector<unsigned char>* png_representation) OVERRIDE; | 164 std::vector<unsigned char>* png_representation) OVERRIDE; |
165 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 165 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
166 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 166 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
167 virtual void PrepareForShutdown() OVERRIDE; | 167 virtual void PrepareForShutdown() OVERRIDE; |
168 | 168 |
169 // Helper function to dispatch a keyboard message to the desired target. | |
170 // The default target is the RootWindowHostDelegate. For nested message loop | |
171 // invocations we post the message into the message loop. The dispatcher for | |
cpu_(ooo_6.6-7.5)
2013/03/07 21:02:26
"we post the message into the message loop"
"we p
ananta
2013/03/07 21:06:12
Done.
| |
172 // the nested loop would then decide how this message is routed. | |
173 void DispatchKeyboardMessage(ui::EventType type, | |
174 uint32 vkey, | |
175 uint32 repeat_count, | |
176 uint32 scan_code, | |
177 uint32 flags, | |
178 bool is_character); | |
179 | |
169 RootWindowHostDelegate* delegate_; | 180 RootWindowHostDelegate* delegate_; |
170 IPC::Sender* host_; | 181 IPC::Sender* host_; |
171 scoped_ptr<ui::ViewProp> prop_; | 182 scoped_ptr<ui::ViewProp> prop_; |
172 | 183 |
173 // Saved callbacks which inform the caller about the result of the open file/ | 184 // Saved callbacks which inform the caller about the result of the open file/ |
174 // save file operations. | 185 // save file operations. |
175 OpenFileCompletion file_open_completion_callback_; | 186 OpenFileCompletion file_open_completion_callback_; |
176 OpenMultipleFilesCompletion multi_file_open_completion_callback_; | 187 OpenMultipleFilesCompletion multi_file_open_completion_callback_; |
177 SaveFileCompletion file_saveas_completion_callback_; | 188 SaveFileCompletion file_saveas_completion_callback_; |
178 | 189 |
179 DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin); | 190 DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin); |
180 }; | 191 }; |
181 | 192 |
182 } // namespace aura | 193 } // namespace aura |
183 | 194 |
184 #endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ | 195 #endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ |
OLD | NEW |