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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 // bombing), see DownloadRequestLimiter for details. | 481 // bombing), see DownloadRequestLimiter for details. |
482 virtual void UserGestureDone() = 0; | 482 virtual void UserGestureDone() = 0; |
483 | 483 |
484 // Indicates if this tab was explicitly closed by the user (control-w, close | 484 // Indicates if this tab was explicitly closed by the user (control-w, close |
485 // tab menu item...). This is false for actions that indirectly close the tab, | 485 // tab menu item...). This is false for actions that indirectly close the tab, |
486 // such as closing the window. The setter is maintained by TabStripModel, and | 486 // such as closing the window. The setter is maintained by TabStripModel, and |
487 // the getter only useful from within TAB_CLOSED notification | 487 // the getter only useful from within TAB_CLOSED notification |
488 virtual void SetClosedByUserGesture(bool value) = 0; | 488 virtual void SetClosedByUserGesture(bool value) = 0; |
489 virtual bool GetClosedByUserGesture() const = 0; | 489 virtual bool GetClosedByUserGesture() const = 0; |
490 | 490 |
491 // Gets the zoom percent for this tab. | |
492 virtual int GetZoomPercent(bool* enable_increment, | |
493 bool* enable_decrement) const = 0; | |
494 | |
495 // Opens view-source tab for this contents. | 491 // Opens view-source tab for this contents. |
496 virtual void ViewSource() = 0; | 492 virtual void ViewSource() = 0; |
497 | 493 |
498 virtual void ViewFrameSource(const GURL& url, | 494 virtual void ViewFrameSource(const GURL& url, |
499 const PageState& page_state)= 0; | 495 const PageState& page_state)= 0; |
500 | 496 |
501 // Gets the minimum/maximum zoom percent. | 497 // Gets the minimum/maximum zoom percent. |
502 virtual int GetMinimumZoomPercent() const = 0; | 498 virtual int GetMinimumZoomPercent() const = 0; |
503 virtual int GetMaximumZoomPercent() const = 0; | 499 virtual int GetMaximumZoomPercent() const = 0; |
504 | 500 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 | 589 |
594 private: | 590 private: |
595 // This interface should only be implemented inside content. | 591 // This interface should only be implemented inside content. |
596 friend class WebContentsImpl; | 592 friend class WebContentsImpl; |
597 WebContents() {} | 593 WebContents() {} |
598 }; | 594 }; |
599 | 595 |
600 } // namespace content | 596 } // namespace content |
601 | 597 |
602 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 598 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |