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 back to one. | 582 // Set the renderer's page scale to the given factor. |
583 virtual void ResetPageScale() = 0; | 583 virtual void SetPageScale(float page_scale_factor) = 0; |
584 | 584 |
585 // Gets the preferred size of the contents. | 585 // Gets the preferred size of the contents. |
586 virtual gfx::Size GetPreferredSize() const = 0; | 586 virtual gfx::Size GetPreferredSize() const = 0; |
587 | 587 |
588 // Called when the reponse to a pending mouse lock request has arrived. | 588 // 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 | 589 // Returns true if |allowed| is true and the mouse has been successfully |
590 // locked. | 590 // locked. |
591 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0; | 591 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0; |
592 | 592 |
593 // Called when the user has selected a color in the color chooser. | 593 // 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 | 701 |
702 private: | 702 private: |
703 // This interface should only be implemented inside content. | 703 // This interface should only be implemented inside content. |
704 friend class WebContentsImpl; | 704 friend class WebContentsImpl; |
705 WebContents() {} | 705 WebContents() {} |
706 }; | 706 }; |
707 | 707 |
708 } // namespace content | 708 } // namespace content |
709 | 709 |
710 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 710 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |