| 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_PUBLIC_CPP_VIEW_H_ | 5 #ifndef SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_H_ |
| 6 #define SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_H_ | 6 #define SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "mojo/public/cpp/bindings/binding.h" | 10 #include "mojo/public/cpp/bindings/binding.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void HideInterstitial(); | 67 void HideInterstitial(); |
| 68 | 68 |
| 69 // Embed the View visually within |parent|. | 69 // Embed the View visually within |parent|. |
| 70 void EmbedInWindow(ui::Window* parent); | 70 void EmbedInWindow(ui::Window* parent); |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 // mojom::ViewClient: | 73 // mojom::ViewClient: |
| 74 void OpenURL(mojom::OpenURLParamsPtr params) override; | 74 void OpenURL(mojom::OpenURLParamsPtr params) override; |
| 75 void LoadingStateChanged(bool is_loading) override; | 75 void LoadingStateChanged(bool is_loading) override; |
| 76 void NavigationStateChanged(const GURL& url, | 76 void NavigationStateChanged(const GURL& url, |
| 77 const mojo::String& title, | 77 const std::string& title, |
| 78 bool can_go_back, | 78 bool can_go_back, |
| 79 bool can_go_forward) override; | 79 bool can_go_forward) override; |
| 80 void LoadProgressChanged(double progress) override; | 80 void LoadProgressChanged(double progress) override; |
| 81 void UpdateHoverURL(const GURL& url) override; | 81 void UpdateHoverURL(const GURL& url) override; |
| 82 void ViewCreated(mojom::ViewPtr view, | 82 void ViewCreated(mojom::ViewPtr view, |
| 83 mojom::ViewClientRequest request, | 83 mojom::ViewClientRequest request, |
| 84 bool is_popup, | 84 bool is_popup, |
| 85 const gfx::Rect& initial_bounds, | 85 const gfx::Rect& initial_bounds, |
| 86 bool user_gesture) override; | 86 bool user_gesture) override; |
| 87 void Close() override; | 87 void Close() override; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 105 bool can_go_forward_ = false; | 105 bool can_go_forward_ = false; |
| 106 | 106 |
| 107 mojom::NavigationEntryPtr pending_navigation_; | 107 mojom::NavigationEntryPtr pending_navigation_; |
| 108 std::vector<mojom::NavigationEntryPtr> navigation_list_; | 108 std::vector<mojom::NavigationEntryPtr> navigation_list_; |
| 109 int navigation_list_cursor_ = 0; | 109 int navigation_list_cursor_ = 0; |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 } // namespace navigation | 112 } // namespace navigation |
| 113 | 113 |
| 114 #endif // SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_H_ | 114 #endif // SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_H_ |
| OLD | NEW |