OLD | NEW |
---|---|
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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
475 bool is_favicon, | 475 bool is_favicon, |
476 uint32_t max_bitmap_size, | 476 uint32_t max_bitmap_size, |
477 const ImageDownloadCallback& callback) = 0; | 477 const ImageDownloadCallback& callback) = 0; |
478 | 478 |
479 // Returns true if the WebContents is responsible for displaying a subframe | 479 // Returns true if the WebContents is responsible for displaying a subframe |
480 // in a different process from its parent page. | 480 // in a different process from its parent page. |
481 // TODO: this doesn't really belong here. With site isolation, this should be | 481 // TODO: this doesn't really belong here. With site isolation, this should be |
482 // removed since we can then embed iframes in different processes. | 482 // removed since we can then embed iframes in different processes. |
483 virtual bool IsSubframe() const = 0; | 483 virtual bool IsSubframe() const = 0; |
484 | 484 |
485 // Sets the zoom level for the current main frame and all BrowserPluginGuests | |
nasko
2014/01/08 21:59:06
nit: My point was that it affects all frames, not
Fady Samuel
2014/01/09 16:19:45
Done.
| |
486 // within the page. | |
487 virtual void SetZoomLevel(double level) = 0; | |
488 | |
485 #if defined(OS_ANDROID) | 489 #if defined(OS_ANDROID) |
486 CONTENT_EXPORT static WebContents* FromJavaWebContents( | 490 CONTENT_EXPORT static WebContents* FromJavaWebContents( |
487 jobject jweb_contents_android); | 491 jobject jweb_contents_android); |
488 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; | 492 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; |
489 #endif // OS_ANDROID | 493 #endif // OS_ANDROID |
490 | 494 |
491 private: | 495 private: |
492 // This interface should only be implemented inside content. | 496 // This interface should only be implemented inside content. |
493 friend class WebContentsImpl; | 497 friend class WebContentsImpl; |
494 WebContents() {} | 498 WebContents() {} |
495 }; | 499 }; |
496 | 500 |
497 } // namespace content | 501 } // namespace content |
498 | 502 |
499 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 503 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |