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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 287093002: Remove ViewMsg_SetZoomLevel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 void increment_ref_count() { ++frames_ref_count_; } 446 void increment_ref_count() { ++frames_ref_count_; }
447 447
448 // Decreases the refcounting on this RVH. This is done by the FrameTree on 448 // Decreases the refcounting on this RVH. This is done by the FrameTree on
449 // destruction of a RenderFrameHost. 449 // destruction of a RenderFrameHost.
450 void decrement_ref_count() { --frames_ref_count_; } 450 void decrement_ref_count() { --frames_ref_count_; }
451 451
452 // Returns the refcount on this RVH, that is the number of RenderFrameHosts 452 // Returns the refcount on this RVH, that is the number of RenderFrameHosts
453 // currently using it. 453 // currently using it.
454 int ref_count() { return frames_ref_count_; } 454 int ref_count() { return frames_ref_count_; }
455 455
456 bool uses_temporary_zoom_settings() const {
457 return uses_temporary_zoom_settings_;
458 }
459
456 // NOTE: Do not add functions that just send an IPC message that are called in 460 // NOTE: Do not add functions that just send an IPC message that are called in
457 // one or two places. Have the caller send the IPC message directly (unless 461 // one or two places. Have the caller send the IPC message directly (unless
458 // the caller places are in different platforms, in which case it's better 462 // the caller places are in different platforms, in which case it's better
459 // to keep them consistent). 463 // to keep them consistent).
460 464
461 protected: 465 protected:
462 // RenderWidgetHost protected overrides. 466 // RenderWidgetHost protected overrides.
463 virtual void OnUserGesture() OVERRIDE; 467 virtual void OnUserGesture() OVERRIDE;
464 virtual void NotifyRendererUnresponsive() OVERRIDE; 468 virtual void NotifyRendererUnresponsive() OVERRIDE;
465 virtual void NotifyRendererResponsive() OVERRIDE; 469 virtual void NotifyRendererResponsive() OVERRIDE;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 void OnTargetDropACK(); 511 void OnTargetDropACK();
508 void OnTakeFocus(bool reverse); 512 void OnTakeFocus(bool reverse);
509 void OnFocusedNodeChanged(bool is_editable_node); 513 void OnFocusedNodeChanged(bool is_editable_node);
510 void OnUpdateInspectorSetting(const std::string& key, 514 void OnUpdateInspectorSetting(const std::string& key,
511 const std::string& value); 515 const std::string& value);
512 void OnClosePageACK(); 516 void OnClosePageACK();
513 void OnAccessibilityEvents( 517 void OnAccessibilityEvents(
514 const std::vector<AccessibilityHostMsg_EventParams>& params); 518 const std::vector<AccessibilityHostMsg_EventParams>& params);
515 void OnAccessibilityLocationChanges( 519 void OnAccessibilityLocationChanges(
516 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); 520 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params);
517 void OnDidZoomURL(double zoom_level, bool remember, const GURL& url); 521 void OnDidCreateDocument(bool is_plugin_document);
522 void OnDidZoomURL(double zoom_level, const GURL& url);
518 void OnRunFileChooser(const FileChooserParams& params); 523 void OnRunFileChooser(const FileChooserParams& params);
519 void OnFocusedNodeTouched(bool editable); 524 void OnFocusedNodeTouched(bool editable);
520 525
521 #if defined(OS_MACOSX) || defined(OS_ANDROID) 526 #if defined(OS_MACOSX) || defined(OS_ANDROID)
522 void OnShowPopup(const ViewHostMsg_ShowPopup_Params& params); 527 void OnShowPopup(const ViewHostMsg_ShowPopup_Params& params);
523 void OnHidePopup(); 528 void OnHidePopup();
524 #endif 529 #endif
525 530
526 private: 531 private:
527 // TODO(nasko): Temporarily friend RenderFrameHostImpl, so we don't duplicate 532 // TODO(nasko): Temporarily friend RenderFrameHostImpl, so we don't duplicate
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 // Called after receiving the SwapOutACK when the RVH is in state pending 640 // Called after receiving the SwapOutACK when the RVH is in state pending
636 // shutdown. Also called if the unload timer times out. 641 // shutdown. Also called if the unload timer times out.
637 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. 642 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state.
638 base::Closure pending_shutdown_on_swap_out_; 643 base::Closure pending_shutdown_on_swap_out_;
639 644
640 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; 645 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_;
641 646
642 // True if the current focused element is editable. 647 // True if the current focused element is editable.
643 bool is_focused_element_editable_; 648 bool is_focused_element_editable_;
644 649
650 // Used to keep track of whether the view document is a pluginDocument.
651 bool uses_temporary_zoom_settings_;
652
645 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 653 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
646 }; 654 };
647 655
648 #if defined(COMPILER_MSVC) 656 #if defined(COMPILER_MSVC)
649 #pragma warning(pop) 657 #pragma warning(pop)
650 #endif 658 #endif
651 659
652 } // namespace content 660 } // namespace content
653 661
654 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 662 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698