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