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

Side by Side Diff: content/public/browser/web_contents.h

Issue 98073015: <webview>: Support zoom in WebUI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GTK Created 6 years, 11 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
« no previous file with comments | « content/public/browser/render_view_host.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 bool is_favicon, 480 bool is_favicon,
481 uint32_t max_bitmap_size, 481 uint32_t max_bitmap_size,
482 const ImageDownloadCallback& callback) = 0; 482 const ImageDownloadCallback& callback) = 0;
483 483
484 // Returns true if the WebContents is responsible for displaying a subframe 484 // Returns true if the WebContents is responsible for displaying a subframe
485 // in a different process from its parent page. 485 // in a different process from its parent page.
486 // TODO: this doesn't really belong here. With site isolation, this should be 486 // TODO: this doesn't really belong here. With site isolation, this should be
487 // removed since we can then embed iframes in different processes. 487 // removed since we can then embed iframes in different processes.
488 virtual bool IsSubframe() const = 0; 488 virtual bool IsSubframe() const = 0;
489 489
490 // Sets the zoom level for the current page and all BrowserPluginGuests
491 // within the page.
492 virtual void SetZoomLevel(double level) = 0;
493
490 // Finds text on a page. 494 // Finds text on a page.
491 virtual void Find(int request_id, 495 virtual void Find(int request_id,
492 const base::string16& search_text, 496 const base::string16& search_text,
493 const blink::WebFindOptions& options) = 0; 497 const blink::WebFindOptions& options) = 0;
494 498
495 // Notifies the renderer that the user has closed the FindInPage window 499 // Notifies the renderer that the user has closed the FindInPage window
496 // (and what action to take regarding the selection). 500 // (and what action to take regarding the selection).
497 virtual void StopFinding(StopFindAction action) = 0; 501 virtual void StopFinding(StopFindAction action) = 0;
498 502
499 #if defined(OS_ANDROID) 503 #if defined(OS_ANDROID)
500 CONTENT_EXPORT static WebContents* FromJavaWebContents( 504 CONTENT_EXPORT static WebContents* FromJavaWebContents(
501 jobject jweb_contents_android); 505 jobject jweb_contents_android);
502 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; 506 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0;
503 #endif // OS_ANDROID 507 #endif // OS_ANDROID
504 508
505 private: 509 private:
506 // This interface should only be implemented inside content. 510 // This interface should only be implemented inside content.
507 friend class WebContentsImpl; 511 friend class WebContentsImpl;
508 WebContents() {} 512 WebContents() {}
509 }; 513 };
510 514
511 } // namespace content 515 } // namespace content
512 516
513 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 517 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698