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