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

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

Issue 2491113002: Fix form validation bubble positioning at hidpi. (Closed)
Patch Set: override and comment in rwhv_base 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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // The |editable| parameter indicates if the node is editable, for e.g. 165 // The |editable| parameter indicates if the node is editable, for e.g.
166 // an input field, etc. 166 // an input field, etc.
167 virtual void FocusedNodeTouched(const gfx::Point& location_dips_screen, 167 virtual void FocusedNodeTouched(const gfx::Point& location_dips_screen,
168 bool editable) = 0; 168 bool editable) = 0;
169 169
170 // Informs the view that its associated render widget has frames to draw and 170 // Informs the view that its associated render widget has frames to draw and
171 // wants to have BeginFrame messages sent to it. This should only be called 171 // wants to have BeginFrame messages sent to it. This should only be called
172 // when the value has changed. Views must initially default to false. 172 // when the value has changed. Views must initially default to false.
173 virtual void SetNeedsBeginFrames(bool needs_begin_frames) = 0; 173 virtual void SetNeedsBeginFrames(bool needs_begin_frames) = 0;
174 174
175 virtual float GetDeviceScaleFactor() const = 0;
176
175 #if defined(OS_MACOSX) 177 #if defined(OS_MACOSX)
176 // Return the accelerated widget which hosts the CALayers that draw the 178 // Return the accelerated widget which hosts the CALayers that draw the
177 // content of the view in GetNativeView. This may be null. 179 // content of the view in GetNativeView. This may be null.
178 virtual ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const = 0; 180 virtual ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const = 0;
179 181
180 // Set the view's active state (i.e., tint state of controls). 182 // Set the view's active state (i.e., tint state of controls).
181 virtual void SetActive(bool active) = 0; 183 virtual void SetActive(bool active) = 0;
182 184
183 // Brings up the dictionary showing a definition for the selected text. 185 // Brings up the dictionary showing a definition for the selected text.
184 virtual void ShowDefinitionForSelection() = 0; 186 virtual void ShowDefinitionForSelection() = 0;
185 187
186 // Returns |true| if Mac OS X text to speech is supported. 188 // Returns |true| if Mac OS X text to speech is supported.
187 virtual bool SupportsSpeech() const = 0; 189 virtual bool SupportsSpeech() const = 0;
188 // Tells the view to speak the currently selected text. 190 // Tells the view to speak the currently selected text.
189 virtual void SpeakSelection() = 0; 191 virtual void SpeakSelection() = 0;
190 // Returns |true| if text is currently being spoken by Mac OS X. 192 // Returns |true| if text is currently being spoken by Mac OS X.
191 virtual bool IsSpeaking() const = 0; 193 virtual bool IsSpeaking() const = 0;
192 // Stops speaking, if it is currently in progress. 194 // Stops speaking, if it is currently in progress.
193 virtual void StopSpeaking() = 0; 195 virtual void StopSpeaking() = 0;
194 #endif // defined(OS_MACOSX) 196 #endif // defined(OS_MACOSX)
195 }; 197 };
196 198
197 } // namespace content 199 } // namespace content
198 200
199 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 201 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698