| OLD | NEW |
| 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_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 "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 Window* mouse_pressed_handler() { return mouse_pressed_handler_; } | 43 Window* mouse_pressed_handler() { return mouse_pressed_handler_; } |
| 44 | 44 |
| 45 // Overridden from Window: | 45 // Overridden from Window: |
| 46 virtual FocusManager* GetFocusManager() OVERRIDE; | 46 virtual FocusManager* GetFocusManager() OVERRIDE; |
| 47 | 47 |
| 48 protected: | 48 protected: |
| 49 // Overridden from Window: | 49 // Overridden from Window: |
| 50 virtual internal::RootWindow* GetRoot() OVERRIDE; | 50 virtual internal::RootWindow* GetRoot() OVERRIDE; |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, |
| 54 // sending exited and entered events as its value changes. |
| 55 void HandleMouseMoved(const MouseEvent& event, Window* target); |
| 56 |
| 53 Window* mouse_pressed_handler_; | 57 Window* mouse_pressed_handler_; |
| 58 Window* mouse_moved_handler_; |
| 54 scoped_ptr<FocusManager> focus_manager_; | 59 scoped_ptr<FocusManager> focus_manager_; |
| 55 Window* capture_window_; | 60 Window* capture_window_; |
| 56 | 61 |
| 57 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 62 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
| 58 }; | 63 }; |
| 59 | 64 |
| 60 } // namespace internal | 65 } // namespace internal |
| 61 } // namespace aura | 66 } // namespace aura |
| 62 | 67 |
| 63 #endif // UI_AURA_ROOT_WINDOW_H_ | 68 #endif // UI_AURA_ROOT_WINDOW_H_ |
| OLD | NEW |