| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_ | 5 #ifndef MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_ |
| 6 #define MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_ | 6 #define MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_ |
| 7 | 7 |
| 8 #include "mojo/aura/window_tree_host_mojo_delegate.h" | 8 #include "mojo/aura/window_tree_host_mojo_delegate.h" |
| 9 #include "mojo/services/public/cpp/view_manager/node_observer.h" | 9 #include "mojo/services/public/cpp/view_manager/node_observer.h" |
| 10 #include "mojo/services/public/cpp/view_manager/view_observer.h" | 10 #include "mojo/services/public/cpp/view_manager/view_observer.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 virtual ~NativeWidgetViewManager(); | 35 virtual ~NativeWidgetViewManager(); |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 // Overridden from internal::NativeWidgetAura: | 38 // Overridden from internal::NativeWidgetAura: |
| 39 virtual void InitNativeWidget( | 39 virtual void InitNativeWidget( |
| 40 const views::Widget::InitParams& in_params) OVERRIDE; | 40 const views::Widget::InitParams& in_params) OVERRIDE; |
| 41 | 41 |
| 42 // WindowTreeHostMojoDelegate: | 42 // WindowTreeHostMojoDelegate: |
| 43 virtual void CompositorContentsChanged(const SkBitmap& bitmap) OVERRIDE; | 43 virtual void CompositorContentsChanged(const SkBitmap& bitmap) OVERRIDE; |
| 44 | 44 |
| 45 // view_manager::NodeObserver: |
| 46 virtual void OnNodeDestroyed(view_manager::Node* node) OVERRIDE; |
| 47 virtual void OnNodeActiveViewChanged(view_manager::Node* node, |
| 48 view_manager::View* old_view, |
| 49 view_manager::View* new_view) OVERRIDE; |
| 50 |
| 45 // view_manager::ViewObserver | 51 // view_manager::ViewObserver |
| 46 virtual void OnViewInputEvent(view_manager::View* view, | 52 virtual void OnViewInputEvent(view_manager::View* view, |
| 47 const EventPtr& event) OVERRIDE; | 53 const EventPtr& event) OVERRIDE; |
| 48 | 54 |
| 49 scoped_ptr<WindowTreeHostMojo> window_tree_host_; | 55 scoped_ptr<WindowTreeHostMojo> window_tree_host_; |
| 50 | 56 |
| 51 scoped_ptr<wm::FocusController> focus_client_; | 57 scoped_ptr<wm::FocusController> focus_client_; |
| 52 | 58 |
| 53 scoped_ptr<ui::internal::InputMethodDelegate> ime_filter_; | 59 scoped_ptr<ui::internal::InputMethodDelegate> ime_filter_; |
| 54 | 60 |
| 55 view_manager::Node* node_; | 61 view_manager::Node* node_; |
| 56 | 62 |
| 57 scoped_ptr<wm::ScopedCaptureClient> capture_client_; | 63 scoped_ptr<wm::ScopedCaptureClient> capture_client_; |
| 58 | 64 |
| 59 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViewManager); | 65 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViewManager); |
| 60 }; | 66 }; |
| 61 | 67 |
| 62 } // namespace mojo | 68 } // namespace mojo |
| 63 | 69 |
| 64 #endif // MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_ | 70 #endif // MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_ |
| OLD | NEW |