| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 162 |
| 163 // NotificationObserver implementation. | 163 // NotificationObserver implementation. |
| 164 void Observe(int type, | 164 void Observe(int type, |
| 165 const content::NotificationSource& source, | 165 const content::NotificationSource& source, |
| 166 const content::NotificationDetails& details) override; | 166 const content::NotificationDetails& details) override; |
| 167 | 167 |
| 168 // Returns the current zoom factor. | 168 // Returns the current zoom factor. |
| 169 double zoom() const { return current_zoom_factor_; } | 169 double zoom() const { return current_zoom_factor_; } |
| 170 | 170 |
| 171 // Begin or continue a find request. | 171 // Begin or continue a find request. |
| 172 void StartFinding(const base::string16& search_text, | 172 void StartFindInternal( |
| 173 const blink::WebFindOptions& options, | 173 const base::string16& search_text, |
| 174 scoped_refptr<WebViewInternalFindFunction> find_function); | 174 const blink::WebFindOptions& options, |
| 175 scoped_refptr<WebViewInternalFindFunction> find_function); |
| 175 | 176 |
| 176 // Conclude a find request to clear highlighting. | 177 // Conclude a find request to clear highlighting. |
| 177 void StopFinding(content::StopFindAction); | 178 void StopFindingInternal(content::StopFindAction); |
| 178 | 179 |
| 179 // If possible, navigate the guest to |relative_index| entries away from the | 180 // If possible, navigate the guest to |relative_index| entries away from the |
| 180 // current navigation entry. Returns true on success. | 181 // current navigation entry. Returns true on success. |
| 181 bool Go(int relative_index); | 182 bool Go(int relative_index); |
| 182 | 183 |
| 183 // Reload the guest. | 184 // Reload the guest. |
| 184 void Reload(); | 185 void Reload(); |
| 185 | 186 |
| 186 using PermissionResponseCallback = | 187 using PermissionResponseCallback = |
| 187 base::Callback<void(bool /* allow */, | 188 base::Callback<void(bool /* allow */, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 // This is used to ensure pending tasks will not fire after this object is | 365 // This is used to ensure pending tasks will not fire after this object is |
| 365 // destroyed. | 366 // destroyed. |
| 366 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; | 367 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; |
| 367 | 368 |
| 368 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 369 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
| 369 }; | 370 }; |
| 370 | 371 |
| 371 } // namespace extensions | 372 } // namespace extensions |
| 372 | 373 |
| 373 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 374 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| OLD | NEW |