| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // mojom::View: | 43 // mojom::View: |
| 44 void NavigateTo(const GURL& url) override; | 44 void NavigateTo(const GURL& url) override; |
| 45 void GoBack() override; | 45 void GoBack() override; |
| 46 void GoForward() override; | 46 void GoForward() override; |
| 47 void NavigateToOffset(int offset) override; | 47 void NavigateToOffset(int offset) override; |
| 48 void Reload(bool skip_cache) override; | 48 void Reload(bool skip_cache) override; |
| 49 void Stop() override; | 49 void Stop() override; |
| 50 void GetWindowTreeClient(ui::mojom::WindowTreeClientRequest request) override; | 50 void GetWindowTreeClient(ui::mojom::WindowTreeClientRequest request) override; |
| 51 void ShowInterstitial(const mojo::String& html) override; | 51 void ShowInterstitial(const mojo::String& html) override; |
| 52 void HideInterstitial() override; | 52 void HideInterstitial() override; |
| 53 void SetResizerSize(const gfx::Size& size) override; | |
| 54 | 53 |
| 55 // content::WebContentsDelegate: | 54 // content::WebContentsDelegate: |
| 56 void AddNewContents(content::WebContents* source, | 55 void AddNewContents(content::WebContents* source, |
| 57 content::WebContents* new_contents, | 56 content::WebContents* new_contents, |
| 58 WindowOpenDisposition disposition, | 57 WindowOpenDisposition disposition, |
| 59 const gfx::Rect& initial_rect, | 58 const gfx::Rect& initial_rect, |
| 60 bool user_gesture, | 59 bool user_gesture, |
| 61 bool* was_blocked) override; | 60 bool* was_blocked) override; |
| 62 void CloseContents(content::WebContents* source) override; | 61 void CloseContents(content::WebContents* source) override; |
| 63 content::WebContents* OpenURLFromTab( | 62 content::WebContents* OpenURLFromTab( |
| 64 content::WebContents* source, | 63 content::WebContents* source, |
| 65 const content::OpenURLParams& params) override; | 64 const content::OpenURLParams& params) override; |
| 66 void LoadingStateChanged(content::WebContents* source, | 65 void LoadingStateChanged(content::WebContents* source, |
| 67 bool to_different_document) override; | 66 bool to_different_document) override; |
| 68 void NavigationStateChanged(content::WebContents* source, | 67 void NavigationStateChanged(content::WebContents* source, |
| 69 content::InvalidateTypes changed_flags) override; | 68 content::InvalidateTypes changed_flags) override; |
| 70 void LoadProgressChanged(content::WebContents* source, | 69 void LoadProgressChanged(content::WebContents* source, |
| 71 double progress) override; | 70 double progress) override; |
| 72 void UpdateTargetURL(content::WebContents* source, const GURL& url) override; | 71 void UpdateTargetURL(content::WebContents* source, const GURL& url) override; |
| 73 gfx::Rect GetRootWindowResizerRect() const override; | |
| 74 | 72 |
| 75 // content::NotificationObserver: | 73 // content::NotificationObserver: |
| 76 void Observe(int type, | 74 void Observe(int type, |
| 77 const content::NotificationSource& source, | 75 const content::NotificationSource& source, |
| 78 const content::NotificationDetails& details) override; | 76 const content::NotificationDetails& details) override; |
| 79 | 77 |
| 80 // ui::WindowTreeClientDelegate: | 78 // ui::WindowTreeClientDelegate: |
| 81 void OnEmbed(ui::Window* root) override; | 79 void OnEmbed(ui::Window* root) override; |
| 82 void OnEmbedRootDestroyed(ui::Window* root) override; | 80 void OnEmbedRootDestroyed(ui::Window* root) override; |
| 83 void OnLostConnection(ui::WindowTreeClient* client) override; | 81 void OnLostConnection(ui::WindowTreeClient* client) override; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 96 std::unique_ptr<ui::WindowTreeClient> window_tree_client_; | 94 std::unique_ptr<ui::WindowTreeClient> window_tree_client_; |
| 97 | 95 |
| 98 views::WebView* web_view_; | 96 views::WebView* web_view_; |
| 99 | 97 |
| 100 std::unique_ptr<content::WebContents> web_contents_; | 98 std::unique_ptr<content::WebContents> web_contents_; |
| 101 | 99 |
| 102 content::NotificationRegistrar registrar_; | 100 content::NotificationRegistrar registrar_; |
| 103 | 101 |
| 104 std::unique_ptr<views::Widget> widget_; | 102 std::unique_ptr<views::Widget> widget_; |
| 105 | 103 |
| 106 gfx::Size resizer_size_; | |
| 107 | |
| 108 DISALLOW_COPY_AND_ASSIGN(ViewImpl); | 104 DISALLOW_COPY_AND_ASSIGN(ViewImpl); |
| 109 }; | 105 }; |
| 110 | 106 |
| 111 } // navigation | 107 } // navigation |
| 112 | 108 |
| 113 #endif // SERVICES_NAVIGATION_VIEW_IMPL_H_ | 109 #endif // SERVICES_NAVIGATION_VIEW_IMPL_H_ |
| OLD | NEW |