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

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: Address tfarina's comments 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') | 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 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 #endif
143
139 private: 144 private:
140 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, 145 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|,
141 // sending exited and entered events as its value changes. 146 // sending exited and entered events as its value changes.
142 void HandleMouseMoved(const MouseEvent& event, Window* target); 147 void HandleMouseMoved(const MouseEvent& event, Window* target);
143 148
144 bool ProcessMouseEvent(Window* target, MouseEvent* event); 149 bool ProcessMouseEvent(Window* target, MouseEvent* event);
145 bool ProcessKeyEvent(Window* target, KeyEvent* event); 150 bool ProcessKeyEvent(Window* target, KeyEvent* event);
146 ui::TouchStatus ProcessTouchEvent(Window* target, TouchEvent* event); 151 ui::TouchStatus ProcessTouchEvent(Window* target, TouchEvent* event);
147 152
148 // Overridden from ui::CompositorDelegate 153 // Overridden from ui::CompositorDelegate
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 Window* mouse_moved_handler_; 222 Window* mouse_moved_handler_;
218 Window* focused_window_; 223 Window* focused_window_;
219 Window* touch_event_handler_; 224 Window* touch_event_handler_;
220 225
221 DISALLOW_COPY_AND_ASSIGN(Desktop); 226 DISALLOW_COPY_AND_ASSIGN(Desktop);
222 }; 227 };
223 228
224 } // namespace aura 229 } // namespace aura
225 230
226 #endif // UI_AURA_DESKTOP_H_ 231 #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