| OLD | NEW |
| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 bool DispatchTouchEvent(TouchEvent* event); | 118 bool DispatchTouchEvent(TouchEvent* event); |
| 119 | 119 |
| 120 // Handles a gesture event. Returns true if handled. Unlike the other | 120 // Handles a gesture event. Returns true if handled. Unlike the other |
| 121 // event-dispatching function (e.g. for touch/mouse/keyboard events), gesture | 121 // event-dispatching function (e.g. for touch/mouse/keyboard events), gesture |
| 122 // events are dispatched from GestureRecognizer instead of RootWindowHost. | 122 // events are dispatched from GestureRecognizer instead of RootWindowHost. |
| 123 bool DispatchGestureEvent(GestureEvent* event); | 123 bool DispatchGestureEvent(GestureEvent* event); |
| 124 | 124 |
| 125 // Called when the host changes size. | 125 // Called when the host changes size. |
| 126 void OnHostResized(const gfx::Size& size); | 126 void OnHostResized(const gfx::Size& size); |
| 127 | 127 |
| 128 // Called after the screen's work_area_insets_ changed. |
| 129 void OnScreenWorkAreaInsetsChanged(); |
| 130 |
| 128 // Called when the native screen's resolution changes. | 131 // Called when the native screen's resolution changes. |
| 129 void OnNativeScreenResized(const gfx::Size& size); | 132 void OnNativeScreenResized(const gfx::Size& size); |
| 130 | 133 |
| 131 // Invoked when |window| is being destroyed. | 134 // Invoked when |window| is being destroyed. |
| 132 void OnWindowDestroying(Window* window); | 135 void OnWindowDestroying(Window* window); |
| 133 | 136 |
| 134 // Invokved when |window|'s bounds is changed. |contained_mouse| indicates if | 137 // Invokved when |window|'s bounds is changed. |contained_mouse| indicates if |
| 135 // the bounds before change contained the |last_moust_location()|. | 138 // the bounds before change contained the |last_moust_location()|. |
| 136 void OnWindowBoundsChanged(Window* window, bool contained_mouse); | 139 void OnWindowBoundsChanged(Window* window, bool contained_mouse); |
| 137 | 140 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 bool synthesize_mouse_move_; | 313 bool synthesize_mouse_move_; |
| 311 bool waiting_on_compositing_end_; | 314 bool waiting_on_compositing_end_; |
| 312 bool draw_on_compositing_end_; | 315 bool draw_on_compositing_end_; |
| 313 | 316 |
| 314 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 317 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
| 315 }; | 318 }; |
| 316 | 319 |
| 317 } // namespace aura | 320 } // namespace aura |
| 318 | 321 |
| 319 #endif // UI_AURA_ROOT_WINDOW_H_ | 322 #endif // UI_AURA_ROOT_WINDOW_H_ |
| OLD | NEW |