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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // When non-empty, specifies the size of an area in the bottom corner of the | 69 // When non-empty, specifies the size of an area in the bottom corner of the |
70 // View that should allow the enclosing top-level window to be resized via the | 70 // View that should allow the enclosing top-level window to be resized via the |
71 // pointer. | 71 // pointer. |
72 void SetResizerSize(const gfx::Size& size); | 72 void SetResizerSize(const gfx::Size& size); |
73 | 73 |
74 // Embed the View visually within |parent|. | 74 // Embed the View visually within |parent|. |
75 void EmbedInWindow(mus::Window* parent); | 75 void EmbedInWindow(mus::Window* parent); |
76 | 76 |
77 private: | 77 private: |
78 // mojom::ViewClient: | 78 // mojom::ViewClient: |
| 79 void OpenURL(mojom::OpenURLParamsPtr params) override; |
79 void LoadingStateChanged(bool is_loading) override; | 80 void LoadingStateChanged(bool is_loading) override; |
80 void NavigationStateChanged(const GURL& url, | 81 void NavigationStateChanged(const GURL& url, |
81 const mojo::String& title, | 82 const mojo::String& title, |
82 bool can_go_back, | 83 bool can_go_back, |
83 bool can_go_forward) override; | 84 bool can_go_forward) override; |
84 void LoadProgressChanged(double progress) override; | 85 void LoadProgressChanged(double progress) override; |
85 void UpdateHoverURL(const GURL& url) override; | 86 void UpdateHoverURL(const GURL& url) override; |
86 void ViewCreated(mojom::ViewPtr view, | 87 void ViewCreated(mojom::ViewPtr view, |
87 mojom::ViewClientRequest request, | 88 mojom::ViewClientRequest request, |
88 bool is_popup, | 89 bool is_popup, |
(...skipping 20 matching lines...) Expand all Loading... |
109 bool can_go_forward_ = false; | 110 bool can_go_forward_ = false; |
110 | 111 |
111 mojom::NavigationEntryPtr pending_navigation_; | 112 mojom::NavigationEntryPtr pending_navigation_; |
112 std::vector<mojom::NavigationEntryPtr> navigation_list_; | 113 std::vector<mojom::NavigationEntryPtr> navigation_list_; |
113 int navigation_list_cursor_ = 0; | 114 int navigation_list_cursor_ = 0; |
114 }; | 115 }; |
115 | 116 |
116 } // namespace navigation | 117 } // namespace navigation |
117 | 118 |
118 #endif // SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_H_ | 119 #endif // SERVICES_NAVIGATION_PUBLIC_CPP_VIEW_H_ |
OLD | NEW |