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

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

Issue 9696008: TestScreen shouldn't be marked aura export (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again. Created 8 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
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/root_window.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) 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_ROOT_WINDOW_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_H_
6 #define UI_AURA_ROOT_WINDOW_H_ 6 #define UI_AURA_ROOT_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 19 matching lines...) Expand all
30 class LayerAnimationSequence; 30 class LayerAnimationSequence;
31 class Transform; 31 class Transform;
32 } 32 }
33 33
34 namespace aura { 34 namespace aura {
35 35
36 class RootWindowHost; 36 class RootWindowHost;
37 class RootWindowObserver; 37 class RootWindowObserver;
38 class KeyEvent; 38 class KeyEvent;
39 class MouseEvent; 39 class MouseEvent;
40 class ScreenAura;
41 class StackingClient; 40 class StackingClient;
42 class ScrollEvent; 41 class ScrollEvent;
43 class TouchEvent; 42 class TouchEvent;
44 class GestureEvent; 43 class GestureEvent;
45 44
46 // RootWindow is responsible for hosting a set of windows. 45 // RootWindow is responsible for hosting a set of windows.
47 class AURA_EXPORT RootWindow : public ui::CompositorDelegate, 46 class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
48 public ui::CompositorObserver, 47 public ui::CompositorObserver,
49 public Window, 48 public Window,
50 public internal::FocusManager, 49 public internal::FocusManager,
(...skipping 15 matching lines...) Expand all
66 static bool hide_host_cursor() { 65 static bool hide_host_cursor() {
67 return hide_host_cursor_; 66 return hide_host_cursor_;
68 } 67 }
69 68
70 ui::Compositor* compositor() { return compositor_.get(); } 69 ui::Compositor* compositor() { return compositor_.get(); }
71 gfx::Point last_mouse_location() const { return last_mouse_location_; } 70 gfx::Point last_mouse_location() const { return last_mouse_location_; }
72 gfx::NativeCursor last_cursor() const { return last_cursor_; } 71 gfx::NativeCursor last_cursor() const { return last_cursor_; }
73 bool cursor_shown() const { return cursor_shown_; } 72 bool cursor_shown() const { return cursor_shown_; }
74 Window* mouse_pressed_handler() { return mouse_pressed_handler_; } 73 Window* mouse_pressed_handler() { return mouse_pressed_handler_; }
75 Window* capture_window() { return capture_window_; } 74 Window* capture_window() { return capture_window_; }
76 const ScreenAura* screen() { return screen_; }
77 75
78 // Shows the root window host. 76 // Shows the root window host.
79 void ShowRootWindow(); 77 void ShowRootWindow();
80 78
81 // Sets the size of the root window. 79 // Sets the size of the root window.
82 void SetHostSize(const gfx::Size& size); 80 void SetHostSize(const gfx::Size& size);
83 gfx::Size GetHostSize() const; 81 gfx::Size GetHostSize() const;
84 82
85 // Sets the screen's work area insets, this notifies observers too.
86 void SetScreenWorkAreaInsets(const gfx::Insets& insets);
87
88 // Sets the currently-displayed cursor. If the cursor was previously hidden 83 // Sets the currently-displayed cursor. If the cursor was previously hidden
89 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is 84 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is
90 // called, at which point the cursor that was last set via SetCursor() will be 85 // called, at which point the cursor that was last set via SetCursor() will be
91 // used. 86 // used.
92 void SetCursor(gfx::NativeCursor cursor); 87 void SetCursor(gfx::NativeCursor cursor);
93 88
94 // Shows or hides the cursor. 89 // Shows or hides the cursor.
95 void ShowCursor(bool show); 90 void ShowCursor(bool show);
96 91
97 // Moves the cursor to the specified location relative to the root window. 92 // Moves the cursor to the specified location relative to the root window.
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 int mouse_button_flags_; 301 int mouse_button_flags_;
307 302
308 // Last cursor set. Used for testing. 303 // Last cursor set. Used for testing.
309 gfx::NativeCursor last_cursor_; 304 gfx::NativeCursor last_cursor_;
310 305
311 // Is the cursor currently shown? Used for testing. 306 // Is the cursor currently shown? Used for testing.
312 bool cursor_shown_; 307 bool cursor_shown_;
313 308
314 ObserverList<RootWindowObserver> observers_; 309 ObserverList<RootWindowObserver> observers_;
315 310
316 ScreenAura* screen_;
317
318 // The capture window. When not-null, this window receives all the mouse and 311 // The capture window. When not-null, this window receives all the mouse and
319 // touch events. 312 // touch events.
320 Window* capture_window_; 313 Window* capture_window_;
321 314
322 Window* mouse_pressed_handler_; 315 Window* mouse_pressed_handler_;
323 Window* mouse_moved_handler_; 316 Window* mouse_moved_handler_;
324 Window* focused_window_; 317 Window* focused_window_;
325 Window* touch_event_handler_; 318 Window* touch_event_handler_;
326 Window* gesture_handler_; 319 Window* gesture_handler_;
327 320
(...skipping 12 matching lines...) Expand all
340 bool should_hold_mouse_moves_; 333 bool should_hold_mouse_moves_;
341 bool release_mouse_moves_after_draw_; 334 bool release_mouse_moves_after_draw_;
342 scoped_ptr<MouseEvent> held_mouse_move_; 335 scoped_ptr<MouseEvent> held_mouse_move_;
343 336
344 DISALLOW_COPY_AND_ASSIGN(RootWindow); 337 DISALLOW_COPY_AND_ASSIGN(RootWindow);
345 }; 338 };
346 339
347 } // namespace aura 340 } // namespace aura
348 341
349 #endif // UI_AURA_ROOT_WINDOW_H_ 342 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698