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

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

Issue 8465021: Add ShellAcceleratorController that managers global keyboard accelerators. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Move AcceleratorPressed to Shell from Desktop Created 9 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 | « no previous file | ui/aura/desktop.cc » ('j') | ui/aura_shell/shell.h » ('J')
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 // Sets capture to the specified window. 130 // Sets capture to the specified window.
131 void SetCapture(Window* window); 131 void SetCapture(Window* window);
132 132
133 // If |window| has mouse capture, the current capture window is set to NULL. 133 // If |window| has mouse capture, the current capture window is set to NULL.
134 void ReleaseCapture(Window* window); 134 void ReleaseCapture(Window* window);
135 135
136 // Overridden from Window: 136 // Overridden from Window:
137 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; 137 virtual void SetTransform(const ui::Transform& transform) OVERRIDE;
138 138
139 #if !defined(NDEBUG)
140 // Toggles the host's full screen state.
141 void ToggleFullScreen();
142
143 // Rotates the screen.
144 void Rotate();
145 #endif
146
139 private: 147 private:
140 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, 148 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|,
141 // sending exited and entered events as its value changes. 149 // sending exited and entered events as its value changes.
142 void HandleMouseMoved(const MouseEvent& event, Window* target); 150 void HandleMouseMoved(const MouseEvent& event, Window* target);
143 151
144 bool ProcessMouseEvent(Window* target, MouseEvent* event); 152 bool ProcessMouseEvent(Window* target, MouseEvent* event);
145 bool ProcessKeyEvent(Window* target, KeyEvent* event); 153 bool ProcessKeyEvent(Window* target, KeyEvent* event);
146 ui::TouchStatus ProcessTouchEvent(Window* target, TouchEvent* event); 154 ui::TouchStatus ProcessTouchEvent(Window* target, TouchEvent* event);
147 155
148 // Overridden from ui::CompositorDelegate 156 // Overridden from ui::CompositorDelegate
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 Window* mouse_moved_handler_; 225 Window* mouse_moved_handler_;
218 Window* focused_window_; 226 Window* focused_window_;
219 Window* touch_event_handler_; 227 Window* touch_event_handler_;
220 228
221 DISALLOW_COPY_AND_ASSIGN(Desktop); 229 DISALLOW_COPY_AND_ASSIGN(Desktop);
222 }; 230 };
223 231
224 } // namespace aura 232 } // namespace aura
225 233
226 #endif // UI_AURA_DESKTOP_H_ 234 #endif // UI_AURA_DESKTOP_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/desktop.cc » ('j') | ui/aura_shell/shell.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698