| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ | 5 #ifndef ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ |
| 6 #define ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ | 6 #define ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // Close the mirror window. | 53 // Close the mirror window. |
| 54 void Close(); | 54 void Close(); |
| 55 | 55 |
| 56 // Updates the mirrored cursor location,shape and | 56 // Updates the mirrored cursor location,shape and |
| 57 // visibility. | 57 // visibility. |
| 58 void UpdateCursorLocation(); | 58 void UpdateCursorLocation(); |
| 59 void SetMirroredCursor(gfx::NativeCursor cursor); | 59 void SetMirroredCursor(gfx::NativeCursor cursor); |
| 60 void SetMirroredCursorVisibility(bool visible); | 60 void SetMirroredCursorVisibility(bool visible); |
| 61 | 61 |
| 62 // aura::RootWindowObserver overrides: | 62 // aura::RootWindowObserver overrides: |
| 63 virtual void OnWindowTreeHostResized(const aura::RootWindow* root) OVERRIDE; | 63 virtual void OnRootWindowHostResized(const aura::RootWindow* root) OVERRIDE; |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 friend class test::MirrorWindowTestApi; | 66 friend class test::MirrorWindowTestApi; |
| 67 | 67 |
| 68 // Creates a RootWindowTransformer for current display | 68 // Creates a RootWindowTransformer for current display |
| 69 // configuration. | 69 // configuration. |
| 70 scoped_ptr<aura::RootWindowTransformer> CreateRootWindowTransformer() const; | 70 scoped_ptr<aura::RootWindowTransformer> CreateRootWindowTransformer() const; |
| 71 | 71 |
| 72 int current_cursor_type_; | 72 int current_cursor_type_; |
| 73 gfx::Display::Rotation current_cursor_rotation_; | 73 gfx::Display::Rotation current_cursor_rotation_; |
| 74 aura::Window* cursor_window_; // owned by root window. | 74 aura::Window* cursor_window_; // owned by root window. |
| 75 scoped_ptr<aura::RootWindow> root_window_; | 75 scoped_ptr<aura::RootWindow> root_window_; |
| 76 scoped_ptr<CursorWindowDelegate> cursor_window_delegate_; | 76 scoped_ptr<CursorWindowDelegate> cursor_window_delegate_; |
| 77 gfx::Point hot_point_; | 77 gfx::Point hot_point_; |
| 78 gfx::Size mirror_window_host_size_; | 78 gfx::Size mirror_window_host_size_; |
| 79 scoped_refptr<ui::Reflector> reflector_; | 79 scoped_refptr<ui::Reflector> reflector_; |
| 80 | 80 |
| 81 DISALLOW_COPY_AND_ASSIGN(MirrorWindowController); | 81 DISALLOW_COPY_AND_ASSIGN(MirrorWindowController); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace internal | 84 } // namespace internal |
| 85 } // namespace ash | 85 } // namespace ash |
| 86 | 86 |
| 87 #endif // ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ | 87 #endif // ASH_DISPLAY_MIRROR_WINDOW_CONTROLLER_H_ |
| OLD | NEW |