| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/mus/public/cpp/window_tree_client_delegate.h" | 9 #include "components/mus/public/cpp/window_tree_client_delegate.h" |
| 10 #include "content/public/browser/web_contents_delegate.h" | 10 #include "content/public/browser/web_contents_delegate.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 // mojom::View: | 39 // mojom::View: |
| 40 void NavigateTo(const GURL& url) override; | 40 void NavigateTo(const GURL& url) override; |
| 41 void GoBack() override; | 41 void GoBack() override; |
| 42 void GoForward() override; | 42 void GoForward() override; |
| 43 void Reload(bool skip_cache) override; | 43 void Reload(bool skip_cache) override; |
| 44 void Stop() override; | 44 void Stop() override; |
| 45 void GetWindowTreeClient( | 45 void GetWindowTreeClient( |
| 46 mus::mojom::WindowTreeClientRequest request) override; | 46 mus::mojom::WindowTreeClientRequest request) override; |
| 47 void ShowInterstitial(const mojo::String& html) override; |
| 48 void HideInterstitial() override; |
| 47 | 49 |
| 48 // content::WebContentsDelegate: | 50 // content::WebContentsDelegate: |
| 49 void AddNewContents(content::WebContents* source, | 51 void AddNewContents(content::WebContents* source, |
| 50 content::WebContents* new_contents, | 52 content::WebContents* new_contents, |
| 51 WindowOpenDisposition disposition, | 53 WindowOpenDisposition disposition, |
| 52 const gfx::Rect& initial_rect, | 54 const gfx::Rect& initial_rect, |
| 53 bool user_gesture, | 55 bool user_gesture, |
| 54 bool* was_blocked) override; | 56 bool* was_blocked) override; |
| 55 void CloseContents(content::WebContents* source) override; | 57 void CloseContents(content::WebContents* source) override; |
| 56 void LoadingStateChanged(content::WebContents* source, | 58 void LoadingStateChanged(content::WebContents* source, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 80 std::unique_ptr<content::WebContents> web_contents_; | 82 std::unique_ptr<content::WebContents> web_contents_; |
| 81 | 83 |
| 82 std::unique_ptr<views::Widget> widget_; | 84 std::unique_ptr<views::Widget> widget_; |
| 83 | 85 |
| 84 DISALLOW_COPY_AND_ASSIGN(ViewImpl); | 86 DISALLOW_COPY_AND_ASSIGN(ViewImpl); |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 } // navigation | 89 } // navigation |
| 88 | 90 |
| 89 #endif // SERVICES_NAVIGATION_VIEW_IMPL_H_ | 91 #endif // SERVICES_NAVIGATION_VIEW_IMPL_H_ |
| OLD | NEW |