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

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

Issue 2417783005: [Master/Overview CL] Make PageScaleFactor work for oopif subframe.
Patch Set: Rebase to master@{#429656}. Created 4 years, 1 month 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
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_WIDGET_HOST_VIEW_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // Tells if the display property (work area/scale factor) has 135 // Tells if the display property (work area/scale factor) has
136 // changed since the last time. 136 // changed since the last time.
137 bool HasDisplayPropertyChanged(gfx::NativeView view); 137 bool HasDisplayPropertyChanged(gfx::NativeView view);
138 138
139 // Called by the TextInputManager to notify the view about being removed from 139 // Called by the TextInputManager to notify the view about being removed from
140 // the list of registered views, i.e., TextInputManager is no longer tracking 140 // the list of registered views, i.e., TextInputManager is no longer tracking
141 // TextInputState from this view. The RWHV should reset |text_input_manager_| 141 // TextInputState from this view. The RWHV should reset |text_input_manager_|
142 // to nullptr. 142 // to nullptr.
143 void DidUnregisterFromTextInputManager(TextInputManager* text_input_manager); 143 void DidUnregisterFromTextInputManager(TextInputManager* text_input_manager);
144 144
145 void SetPageScaleFactorForSubframes(float page_scale);
146
145 base::WeakPtr<RenderWidgetHostViewBase> GetWeakPtr(); 147 base::WeakPtr<RenderWidgetHostViewBase> GetWeakPtr();
146 148
147 //---------------------------------------------------------------------------- 149 //----------------------------------------------------------------------------
148 // The following methods can be overridden by derived classes. 150 // The following methods can be overridden by derived classes.
149 151
150 // Notifies the View that the renderer text selection has changed. 152 // Notifies the View that the renderer text selection has changed.
151 virtual void SelectionChanged(const base::string16& text, 153 virtual void SelectionChanged(const base::string16& text,
152 size_t offset, 154 size_t offset,
153 const gfx::Range& range); 155 const gfx::Range& range);
154 156
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 502 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
501 503
502 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 504 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
503 505
504 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 506 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
505 }; 507 };
506 508
507 } // namespace content 509 } // namespace content
508 510
509 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 511 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698