| 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_WINDOW_TREE_HOST_WIN_H_ | 5 #ifndef UI_AURA_WINDOW_TREE_HOST_WIN_H_ |
| 6 #define UI_AURA_WINDOW_TREE_HOST_WIN_H_ | 6 #define UI_AURA_WINDOW_TREE_HOST_WIN_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ui/aura/aura_export.h" | 10 #include "ui/aura/aura_export.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 virtual void Show() override; | 29 virtual void Show() override; |
| 30 virtual void Hide() override; | 30 virtual void Hide() override; |
| 31 virtual gfx::Rect GetBounds() const override; | 31 virtual gfx::Rect GetBounds() const override; |
| 32 virtual void SetBounds(const gfx::Rect& bounds) override; | 32 virtual void SetBounds(const gfx::Rect& bounds) override; |
| 33 virtual gfx::Point GetLocationOnNativeScreen() const override; | 33 virtual gfx::Point GetLocationOnNativeScreen() const override; |
| 34 virtual void SetCapture() override; | 34 virtual void SetCapture() override; |
| 35 virtual void ReleaseCapture() override; | 35 virtual void ReleaseCapture() override; |
| 36 virtual void SetCursorNative(gfx::NativeCursor cursor) override; | 36 virtual void SetCursorNative(gfx::NativeCursor cursor) override; |
| 37 virtual void MoveCursorToNative(const gfx::Point& location) override; | 37 virtual void MoveCursorToNative(const gfx::Point& location) override; |
| 38 virtual void OnCursorVisibilityChangedNative(bool show) override; | 38 virtual void OnCursorVisibilityChangedNative(bool show) override; |
| 39 virtual void PostNativeEvent(const base::NativeEvent& native_event) override; | |
| 40 | 39 |
| 41 // ui::EventSource: | 40 // ui::EventSource: |
| 42 virtual ui::EventProcessor* GetEventProcessor() override; | 41 virtual ui::EventProcessor* GetEventProcessor() override; |
| 43 | 42 |
| 44 protected: | 43 protected: |
| 45 gfx::AcceleratedWidget hwnd() const { return widget_; } | 44 gfx::AcceleratedWidget hwnd() const { return widget_; } |
| 46 | 45 |
| 47 private: | 46 private: |
| 48 // ui::PlatformWindowDelegate: | 47 // ui::PlatformWindowDelegate: |
| 49 virtual void OnBoundsChanged(const gfx::Rect& new_bounds) override; | 48 virtual void OnBoundsChanged(const gfx::Rect& new_bounds) override; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 61 gfx::Rect bounds_; | 60 gfx::Rect bounds_; |
| 62 gfx::AcceleratedWidget widget_; | 61 gfx::AcceleratedWidget widget_; |
| 63 scoped_ptr<ui::PlatformWindow> window_; | 62 scoped_ptr<ui::PlatformWindow> window_; |
| 64 | 63 |
| 65 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostWin); | 64 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostWin); |
| 66 }; | 65 }; |
| 67 | 66 |
| 68 } // namespace aura | 67 } // namespace aura |
| 69 | 68 |
| 70 #endif // UI_AURA_WINDOW_TREE_HOST_WIN_H_ | 69 #endif // UI_AURA_WINDOW_TREE_HOST_WIN_H_ |
| OLD | NEW |