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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 // Opens view-source tab for this contents. | 527 // Opens view-source tab for this contents. |
528 virtual void ViewSource() = 0; | 528 virtual void ViewSource() = 0; |
529 | 529 |
530 virtual void ViewFrameSource(const GURL& url, | 530 virtual void ViewFrameSource(const GURL& url, |
531 const PageState& page_state)= 0; | 531 const PageState& page_state)= 0; |
532 | 532 |
533 // Gets the minimum/maximum zoom percent. | 533 // Gets the minimum/maximum zoom percent. |
534 virtual int GetMinimumZoomPercent() const = 0; | 534 virtual int GetMinimumZoomPercent() const = 0; |
535 virtual int GetMaximumZoomPercent() const = 0; | 535 virtual int GetMaximumZoomPercent() const = 0; |
536 | 536 |
| 537 // Set the renderer's page scale back to one. |
| 538 virtual void ResetPageScale() = 0; |
| 539 |
537 // Gets the preferred size of the contents. | 540 // Gets the preferred size of the contents. |
538 virtual gfx::Size GetPreferredSize() const = 0; | 541 virtual gfx::Size GetPreferredSize() const = 0; |
539 | 542 |
540 // Called when the reponse to a pending mouse lock request has arrived. | 543 // Called when the reponse to a pending mouse lock request has arrived. |
541 // Returns true if |allowed| is true and the mouse has been successfully | 544 // Returns true if |allowed| is true and the mouse has been successfully |
542 // locked. | 545 // locked. |
543 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0; | 546 virtual bool GotResponseToLockMouseRequest(bool allowed) = 0; |
544 | 547 |
545 // Called when the user has selected a color in the color chooser. | 548 // Called when the user has selected a color in the color chooser. |
546 virtual void DidChooseColorInColorChooser(SkColor color) = 0; | 549 virtual void DidChooseColorInColorChooser(SkColor color) = 0; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 | 631 |
629 private: | 632 private: |
630 // This interface should only be implemented inside content. | 633 // This interface should only be implemented inside content. |
631 friend class WebContentsImpl; | 634 friend class WebContentsImpl; |
632 WebContents() {} | 635 WebContents() {} |
633 }; | 636 }; |
634 | 637 |
635 } // namespace content | 638 } // namespace content |
636 | 639 |
637 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 640 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |