Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: content/public/browser/web_contents.h

Issue 301733006: Zoom Extension API (chrome) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add event manager for manual zoom events. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 // bombing), see DownloadRequestLimiter for details. 485 // bombing), see DownloadRequestLimiter for details.
486 virtual void UserGestureDone() = 0; 486 virtual void UserGestureDone() = 0;
487 487
488 // Indicates if this tab was explicitly closed by the user (control-w, close 488 // Indicates if this tab was explicitly closed by the user (control-w, close
489 // tab menu item...). This is false for actions that indirectly close the tab, 489 // tab menu item...). This is false for actions that indirectly close the tab,
490 // such as closing the window. The setter is maintained by TabStripModel, and 490 // such as closing the window. The setter is maintained by TabStripModel, and
491 // the getter only useful from within TAB_CLOSED notification 491 // the getter only useful from within TAB_CLOSED notification
492 virtual void SetClosedByUserGesture(bool value) = 0; 492 virtual void SetClosedByUserGesture(bool value) = 0;
493 virtual bool GetClosedByUserGesture() const = 0; 493 virtual bool GetClosedByUserGesture() const = 0;
494 494
495 // Gets the zoom percent for this tab.
496 virtual int GetZoomPercent(bool* enable_increment,
497 bool* enable_decrement) const = 0;
498
499 // Opens view-source tab for this contents. 495 // Opens view-source tab for this contents.
500 virtual void ViewSource() = 0; 496 virtual void ViewSource() = 0;
501 497
502 virtual void ViewFrameSource(const GURL& url, 498 virtual void ViewFrameSource(const GURL& url,
503 const PageState& page_state)= 0; 499 const PageState& page_state)= 0;
504 500
505 // Gets the minimum/maximum zoom percent. 501 // Gets the minimum/maximum zoom percent.
506 virtual int GetMinimumZoomPercent() const = 0; 502 virtual int GetMinimumZoomPercent() const = 0;
507 virtual int GetMaximumZoomPercent() const = 0; 503 virtual int GetMaximumZoomPercent() const = 0;
508 504
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 593
598 private: 594 private:
599 // This interface should only be implemented inside content. 595 // This interface should only be implemented inside content.
600 friend class WebContentsImpl; 596 friend class WebContentsImpl;
601 WebContents() {} 597 WebContents() {}
602 }; 598 };
603 599
604 } // namespace content 600 } // namespace content
605 601
606 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 602 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698