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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
572 // Opens view-source tab for this contents. | 572 // Opens view-source tab for this contents. |
573 virtual void ViewSource() = 0; | 573 virtual void ViewSource() = 0; |
574 | 574 |
575 virtual void ViewFrameSource(const GURL& url, | 575 virtual void ViewFrameSource(const GURL& url, |
576 const PageState& page_state) = 0; | 576 const PageState& page_state) = 0; |
577 | 577 |
578 // Gets the minimum/maximum zoom percent. | 578 // Gets the minimum/maximum zoom percent. |
579 virtual int GetMinimumZoomPercent() const = 0; | 579 virtual int GetMinimumZoomPercent() const = 0; |
580 virtual int GetMaximumZoomPercent() const = 0; | 580 virtual int GetMaximumZoomPercent() const = 0; |
581 | 581 |
582 // Set the renderer's page scale to the given factor. | |
583 virtual void SetPageScale(float page_scale_factor) = 0; | |
582 // Set the renderer's page scale back to one. | 584 // Set the renderer's page scale back to one. |
583 virtual void ResetPageScale() = 0; | 585 virtual void ResetPageScale() = 0; |
wjmaclean
2015/10/19 15:43:28
Perhaps find calls to this and replace with SetPag
Kevin McNee - google account
2015/10/20 15:13:43
Done.
| |
584 | 586 |
585 // Gets the preferred size of the contents. | 587 // Gets the preferred size of the contents. |
586 virtual gfx::Size GetPreferredSize() const = 0; | 588 virtual gfx::Size GetPreferredSize() const = 0; |
587 | 589 |
588 // Called when the reponse to a pending mouse lock request has arrived. | 590 // Called when the reponse to a pending mouse lock request has arrived. |
589 // Returns true if |allowed| is true and the mouse has been successfully | 591 // Returns true if |allowed| is true and the mouse has been successfully |
590 // locked. | 592 // locked. |
591 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0; | 593 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0; |
592 | 594 |
593 // Called when the user has selected a color in the color chooser. | 595 // Called when the user has selected a color in the color chooser. |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
701 | 703 |
702 private: | 704 private: |
703 // This interface should only be implemented inside content. | 705 // This interface should only be implemented inside content. |
704 friend class WebContentsImpl; | 706 friend class WebContentsImpl; |
705 WebContents() {} | 707 WebContents() {} |
706 }; | 708 }; |
707 | 709 |
708 } // namespace content | 710 } // namespace content |
709 | 711 |
710 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 712 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |