| OLD | NEW |
| 1 // Copyright (c) 2011 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/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 // Overridden from Window: | 138 // Overridden from Window: |
| 139 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; | 139 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; |
| 140 | 140 |
| 141 #if !defined(NDEBUG) | 141 #if !defined(NDEBUG) |
| 142 // Toggles the host's full screen state. | 142 // Toggles the host's full screen state. |
| 143 void ToggleFullScreen(); | 143 void ToggleFullScreen(); |
| 144 #endif | 144 #endif |
| 145 | 145 |
| 146 // Overridden from ui::CompositorDelegate: | 146 // Overridden from ui::CompositorDelegate: |
| 147 virtual void ScheduleDraw(); | 147 virtual void ScheduleDraw() OVERRIDE; |
| 148 | 148 |
| 149 private: | 149 private: |
| 150 RootWindow(); | 150 RootWindow(); |
| 151 virtual ~RootWindow(); | 151 virtual ~RootWindow(); |
| 152 | 152 |
| 153 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, | 153 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, |
| 154 // sending exited and entered events as its value changes. | 154 // sending exited and entered events as its value changes. |
| 155 void HandleMouseMoved(const MouseEvent& event, Window* target); | 155 void HandleMouseMoved(const MouseEvent& event, Window* target); |
| 156 | 156 |
| 157 bool ProcessMouseEvent(Window* target, MouseEvent* event); | 157 bool ProcessMouseEvent(Window* target, MouseEvent* event); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 Window* mouse_moved_handler_; | 219 Window* mouse_moved_handler_; |
| 220 Window* focused_window_; | 220 Window* focused_window_; |
| 221 Window* touch_event_handler_; | 221 Window* touch_event_handler_; |
| 222 | 222 |
| 223 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 223 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
| 224 }; | 224 }; |
| 225 | 225 |
| 226 } // namespace aura | 226 } // namespace aura |
| 227 | 227 |
| 228 #endif // UI_AURA_ROOT_WINDOW_H_ | 228 #endif // UI_AURA_ROOT_WINDOW_H_ |
| OLD | NEW |