| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SERVICES_NAVIGATION_VIEW_IMPL_H_ | 5 #ifndef SERVICES_NAVIGATION_VIEW_IMPL_H_ |
| 6 #define SERVICES_NAVIGATION_VIEW_IMPL_H_ | 6 #define SERVICES_NAVIGATION_VIEW_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 gfx::Rect GetRootWindowResizerRect() const override; | 75 gfx::Rect GetRootWindowResizerRect() const override; |
| 76 | 76 |
| 77 // content::NotificationObserver: | 77 // content::NotificationObserver: |
| 78 void Observe(int type, | 78 void Observe(int type, |
| 79 const content::NotificationSource& source, | 79 const content::NotificationSource& source, |
| 80 const content::NotificationDetails& details) override; | 80 const content::NotificationDetails& details) override; |
| 81 | 81 |
| 82 // ui::WindowTreeClientDelegate: | 82 // ui::WindowTreeClientDelegate: |
| 83 void OnEmbed(ui::Window* root) override; | 83 void OnEmbed(ui::Window* root) override; |
| 84 void OnDidDestroyClient(ui::WindowTreeClient* client) override; | 84 void OnDidDestroyClient(ui::WindowTreeClient* client) override; |
| 85 void OnEventObserved(const ui::Event& event, ui::Window* target) override; | 85 void OnPointerWatcherEvent(const ui::PointerEvent& event, |
| 86 ui::Window* target) override; |
| 86 | 87 |
| 87 // views::WidgetDelegate: | 88 // views::WidgetDelegate: |
| 88 views::View* GetContentsView() override; | 89 views::View* GetContentsView() override; |
| 89 views::Widget* GetWidget() override; | 90 views::Widget* GetWidget() override; |
| 90 const views::Widget* GetWidget() const override; | 91 const views::Widget* GetWidget() const override; |
| 91 | 92 |
| 92 std::unique_ptr<shell::Connector> connector_; | 93 std::unique_ptr<shell::Connector> connector_; |
| 93 mojo::StrongBinding<mojom::View> binding_; | 94 mojo::StrongBinding<mojom::View> binding_; |
| 94 mojom::ViewClientPtr client_; | 95 mojom::ViewClientPtr client_; |
| 95 std::unique_ptr<shell::ServiceContextRef> ref_; | 96 std::unique_ptr<shell::ServiceContextRef> ref_; |
| 96 | 97 |
| 97 views::WebView* web_view_; | 98 views::WebView* web_view_; |
| 98 | 99 |
| 99 std::unique_ptr<content::WebContents> web_contents_; | 100 std::unique_ptr<content::WebContents> web_contents_; |
| 100 | 101 |
| 101 content::NotificationRegistrar registrar_; | 102 content::NotificationRegistrar registrar_; |
| 102 | 103 |
| 103 std::unique_ptr<views::Widget> widget_; | 104 std::unique_ptr<views::Widget> widget_; |
| 104 | 105 |
| 105 gfx::Size resizer_size_; | 106 gfx::Size resizer_size_; |
| 106 | 107 |
| 107 DISALLOW_COPY_AND_ASSIGN(ViewImpl); | 108 DISALLOW_COPY_AND_ASSIGN(ViewImpl); |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 } // navigation | 111 } // navigation |
| 111 | 112 |
| 112 #endif // SERVICES_NAVIGATION_VIEW_IMPL_H_ | 113 #endif // SERVICES_NAVIGATION_VIEW_IMPL_H_ |
| OLD | NEW |