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

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

Issue 287093002: Remove ViewMsg_SetZoomLevel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add std:: namespace to find() to fix Android compile. 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
« no previous file with comments | « content/public/browser/host_zoom_map.h ('k') | content/renderer/render_frame_impl.cc » ('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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 // bombing), see DownloadRequestLimiter for details. 488 // bombing), see DownloadRequestLimiter for details.
489 virtual void UserGestureDone() = 0; 489 virtual void UserGestureDone() = 0;
490 490
491 // Indicates if this tab was explicitly closed by the user (control-w, close 491 // Indicates if this tab was explicitly closed by the user (control-w, close
492 // tab menu item...). This is false for actions that indirectly close the tab, 492 // tab menu item...). This is false for actions that indirectly close the tab,
493 // such as closing the window. The setter is maintained by TabStripModel, and 493 // such as closing the window. The setter is maintained by TabStripModel, and
494 // the getter only useful from within TAB_CLOSED notification 494 // the getter only useful from within TAB_CLOSED notification
495 virtual void SetClosedByUserGesture(bool value) = 0; 495 virtual void SetClosedByUserGesture(bool value) = 0;
496 virtual bool GetClosedByUserGesture() const = 0; 496 virtual bool GetClosedByUserGesture() const = 0;
497 497
498 // Gets the zoom level for this tab.
499 virtual double GetZoomLevel() const = 0;
500
501 // Gets the zoom percent for this tab. 498 // Gets the zoom percent for this tab.
502 virtual int GetZoomPercent(bool* enable_increment, 499 virtual int GetZoomPercent(bool* enable_increment,
503 bool* enable_decrement) const = 0; 500 bool* enable_decrement) const = 0;
504 501
505 // Opens view-source tab for this contents. 502 // Opens view-source tab for this contents.
506 virtual void ViewSource() = 0; 503 virtual void ViewSource() = 0;
507 504
508 virtual void ViewFrameSource(const GURL& url, 505 virtual void ViewFrameSource(const GURL& url,
509 const PageState& page_state)= 0; 506 const PageState& page_state)= 0;
510 507
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 bool is_favicon, 555 bool is_favicon,
559 uint32_t max_bitmap_size, 556 uint32_t max_bitmap_size,
560 const ImageDownloadCallback& callback) = 0; 557 const ImageDownloadCallback& callback) = 0;
561 558
562 // Returns true if the WebContents is responsible for displaying a subframe 559 // Returns true if the WebContents is responsible for displaying a subframe
563 // in a different process from its parent page. 560 // in a different process from its parent page.
564 // TODO: this doesn't really belong here. With site isolation, this should be 561 // TODO: this doesn't really belong here. With site isolation, this should be
565 // removed since we can then embed iframes in different processes. 562 // removed since we can then embed iframes in different processes.
566 virtual bool IsSubframe() const = 0; 563 virtual bool IsSubframe() const = 0;
567 564
568 // Sets the zoom level for the current page and all BrowserPluginGuests
569 // within the page.
570 virtual void SetZoomLevel(double level) = 0;
571
572 // Finds text on a page. 565 // Finds text on a page.
573 virtual void Find(int request_id, 566 virtual void Find(int request_id,
574 const base::string16& search_text, 567 const base::string16& search_text,
575 const blink::WebFindOptions& options) = 0; 568 const blink::WebFindOptions& options) = 0;
576 569
577 // Notifies the renderer that the user has closed the FindInPage window 570 // Notifies the renderer that the user has closed the FindInPage window
578 // (and what action to take regarding the selection). 571 // (and what action to take regarding the selection).
579 virtual void StopFinding(StopFindAction action) = 0; 572 virtual void StopFinding(StopFindAction action) = 0;
580 573
581 // Requests the renderer to insert CSS into the main frame's document. 574 // Requests the renderer to insert CSS into the main frame's document.
(...skipping 25 matching lines...) Expand all
607 600
608 private: 601 private:
609 // This interface should only be implemented inside content. 602 // This interface should only be implemented inside content.
610 friend class WebContentsImpl; 603 friend class WebContentsImpl;
611 WebContents() {} 604 WebContents() {}
612 }; 605 };
613 606
614 } // namespace content 607 } // namespace content
615 608
616 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 609 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/host_zoom_map.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698