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

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

Issue 1986153005: The on screen keyboard on Windows 8+ should not obscure the input field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix more winclang build errors Created 4 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
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"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "third_party/WebKit/public/web/WebInputEvent.h" 13 #include "third_party/WebKit/public/web/WebInputEvent.h"
14 #include "third_party/skia/include/core/SkBitmap.h" 14 #include "third_party/skia/include/core/SkBitmap.h"
15 #include "third_party/skia/include/core/SkColor.h" 15 #include "third_party/skia/include/core/SkColor.h"
16 #include "third_party/skia/include/core/SkRegion.h" 16 #include "third_party/skia/include/core/SkRegion.h"
17 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
18 18
19 class GURL; 19 class GURL;
20 20
21 namespace gfx { 21 namespace gfx {
22 class Point;
22 class Rect; 23 class Rect;
23 class Size; 24 class Size;
24 } 25 }
25 26
26 namespace ui { 27 namespace ui {
27 class TextInputClient; 28 class TextInputClient;
28 class AcceleratedWidgetMac; 29 class AcceleratedWidgetMac;
29 } 30 }
30 31
31 namespace content { 32 namespace content {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // Begin subscribing for presentation events and captured frames. 154 // Begin subscribing for presentation events and captured frames.
154 // |subscriber| is now owned by this object, it will be called only on the 155 // |subscriber| is now owned by this object, it will be called only on the
155 // UI thread. 156 // UI thread.
156 virtual void BeginFrameSubscription( 157 virtual void BeginFrameSubscription(
157 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) = 0; 158 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) = 0;
158 159
159 // End subscribing for frame presentation events. FrameSubscriber will be 160 // End subscribing for frame presentation events. FrameSubscriber will be
160 // deleted after this call. 161 // deleted after this call.
161 virtual void EndFrameSubscription() = 0; 162 virtual void EndFrameSubscription() = 0;
162 163
164 // Notification that a node was touched.
165 // The |location| parameter contains the location where the touch occurred
ncarter (slow) 2016/05/19 17:45:55 |location_dips|
ananta 2016/05/19 19:33:38 Done.
166 // in DIPs
167 // The |editable| parameter indicates if the node is editable, for e.g.
168 // an input field, etc.
169 virtual void FocusedNodeTouched(const gfx::Point& location_dips,
170 bool editable) = 0;
171
163 #if defined(OS_MACOSX) 172 #if defined(OS_MACOSX)
164 // Return the accelerated widget which hosts the CALayers that draw the 173 // Return the accelerated widget which hosts the CALayers that draw the
165 // content of the view in GetNativeView. This may be null. 174 // content of the view in GetNativeView. This may be null.
166 virtual ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const = 0; 175 virtual ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const = 0;
167 176
168 // Set the view's active state (i.e., tint state of controls). 177 // Set the view's active state (i.e., tint state of controls).
169 virtual void SetActive(bool active) = 0; 178 virtual void SetActive(bool active) = 0;
170 179
171 // Brings up the dictionary showing a definition for the selected text. 180 // Brings up the dictionary showing a definition for the selected text.
172 virtual void ShowDefinitionForSelection() = 0; 181 virtual void ShowDefinitionForSelection() = 0;
173 182
174 // Returns |true| if Mac OS X text to speech is supported. 183 // Returns |true| if Mac OS X text to speech is supported.
175 virtual bool SupportsSpeech() const = 0; 184 virtual bool SupportsSpeech() const = 0;
176 // Tells the view to speak the currently selected text. 185 // Tells the view to speak the currently selected text.
177 virtual void SpeakSelection() = 0; 186 virtual void SpeakSelection() = 0;
178 // Returns |true| if text is currently being spoken by Mac OS X. 187 // Returns |true| if text is currently being spoken by Mac OS X.
179 virtual bool IsSpeaking() const = 0; 188 virtual bool IsSpeaking() const = 0;
180 // Stops speaking, if it is currently in progress. 189 // Stops speaking, if it is currently in progress.
181 virtual void StopSpeaking() = 0; 190 virtual void StopSpeaking() = 0;
182 #endif // defined(OS_MACOSX) 191 #endif // defined(OS_MACOSX)
183 }; 192 };
184 193
185 } // namespace content 194 } // namespace content
186 195
187 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 196 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698