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

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

Issue 954923005: Make command-zero reset page scale in addition to zoom level (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again again Created 5 years, 9 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
« no previous file with comments | « content/public/browser/host_zoom_map.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « content/public/browser/host_zoom_map.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698