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

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

Issue 12558008: Ensure that menus put in Chrome ASH on Windows 8 are operatable using the keyboard. (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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/remote_root_window_host_win.cc » ('j') | ui/aura/remote_root_window_host_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698