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

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

Issue 8561012: Add ShellAcceleratorController that manages global keyboard accelerators (2nd try). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years 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 | « no previous file | ui/aura/desktop.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_DESKTOP_H_ 5 #ifndef UI_AURA_DESKTOP_H_
6 #define UI_AURA_DESKTOP_H_ 6 #define UI_AURA_DESKTOP_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 // Sets capture to the specified window. 136 // Sets capture to the specified window.
137 void SetCapture(Window* window); 137 void SetCapture(Window* window);
138 138
139 // If |window| has mouse capture, the current capture window is set to NULL. 139 // If |window| has mouse capture, the current capture window is set to NULL.
140 void ReleaseCapture(Window* window); 140 void ReleaseCapture(Window* window);
141 141
142 // Overridden from Window: 142 // Overridden from Window:
143 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; 143 virtual void SetTransform(const ui::Transform& transform) OVERRIDE;
144 144
145 #if !defined(NDEBUG)
146 // Toggles the host's full screen state.
147 void ToggleFullScreen();
148 #endif
149
145 private: 150 private:
146 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, 151 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|,
147 // sending exited and entered events as its value changes. 152 // sending exited and entered events as its value changes.
148 void HandleMouseMoved(const MouseEvent& event, Window* target); 153 void HandleMouseMoved(const MouseEvent& event, Window* target);
149 154
150 bool ProcessMouseEvent(Window* target, MouseEvent* event); 155 bool ProcessMouseEvent(Window* target, MouseEvent* event);
151 bool ProcessKeyEvent(Window* target, KeyEvent* event); 156 bool ProcessKeyEvent(Window* target, KeyEvent* event);
152 ui::TouchStatus ProcessTouchEvent(Window* target, TouchEvent* event); 157 ui::TouchStatus ProcessTouchEvent(Window* target, TouchEvent* event);
153 158
154 // Overridden from ui::CompositorDelegate 159 // Overridden from ui::CompositorDelegate
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 Window* mouse_moved_handler_; 228 Window* mouse_moved_handler_;
224 Window* focused_window_; 229 Window* focused_window_;
225 Window* touch_event_handler_; 230 Window* touch_event_handler_;
226 231
227 DISALLOW_COPY_AND_ASSIGN(Desktop); 232 DISALLOW_COPY_AND_ASSIGN(Desktop);
228 }; 233 };
229 234
230 } // namespace aura 235 } // namespace aura
231 236
232 #endif // UI_AURA_DESKTOP_H_ 237 #endif // UI_AURA_DESKTOP_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698