Chromium Code Reviews| 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. | |
|
nasko
2014/01/06 21:58:40
Is this for the main frame only or for the full do
Fady Samuel
2014/01/08 19:42:43
That depends on your definition of zoom. This zoom
| |
| 486 virtual void SetZoomLevel(double level) = 0; | |
| 487 | |
| 485 #if defined(OS_ANDROID) | 488 #if defined(OS_ANDROID) |
| 486 CONTENT_EXPORT static WebContents* FromJavaWebContents( | 489 CONTENT_EXPORT static WebContents* FromJavaWebContents( |
| 487 jobject jweb_contents_android); | 490 jobject jweb_contents_android); |
| 488 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; | 491 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; |
| 489 #endif // OS_ANDROID | 492 #endif // OS_ANDROID |
| 490 | 493 |
| 491 private: | 494 private: |
| 492 // This interface should only be implemented inside content. | 495 // This interface should only be implemented inside content. |
| 493 friend class WebContentsImpl; | 496 friend class WebContentsImpl; |
| 494 WebContents() {} | 497 WebContents() {} |
| 495 }; | 498 }; |
| 496 | 499 |
| 497 } // namespace content | 500 } // namespace content |
| 498 | 501 |
| 499 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 502 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |