Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_guest.h

Issue 597753003: Implement find in page support for top level BrowserPlugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 const base::Callback<void(bool)>& callback) override; 170 const base::Callback<void(bool)>& callback) override;
171 // NotificationObserver implementation. 171 // NotificationObserver implementation.
172 virtual void Observe(int type, 172 virtual void Observe(int type,
173 const content::NotificationSource& source, 173 const content::NotificationSource& source,
174 const content::NotificationDetails& details) override; 174 const content::NotificationDetails& details) override;
175 175
176 // Returns the current zoom factor. 176 // Returns the current zoom factor.
177 double GetZoom(); 177 double GetZoom();
178 178
179 // Begin or continue a find request. 179 // Begin or continue a find request.
180 void Find(const base::string16& search_text, 180 void StartFinding(const base::string16& search_text,
181 const blink::WebFindOptions& options, 181 const blink::WebFindOptions& options,
182 scoped_refptr<WebViewInternalFindFunction> find_function); 182 scoped_refptr<WebViewInternalFindFunction> find_function);
183 183
184 // Conclude a find request to clear highlighting. 184 // Conclude a find request to clear highlighting.
185 void StopFinding(content::StopFindAction); 185 void StopFinding(content::StopFindAction);
186 186
187 // If possible, navigate the guest to |relative_index| entries away from the 187 // If possible, navigate the guest to |relative_index| entries away from the
188 // current navigation entry. 188 // current navigation entry.
189 void Go(int relative_index); 189 void Go(int relative_index);
190 190
191 // Reload the guest. 191 // Reload the guest.
192 void Reload(); 192 void Reload();
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 368
369 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; 369 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap;
370 PendingWindowMap pending_new_windows_; 370 PendingWindowMap pending_new_windows_;
371 371
372 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 372 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
373 }; 373 };
374 374
375 } // namespace extensions 375 } // namespace extensions
376 376
377 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 377 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698