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

Side by Side Diff: content/renderer/render_widget.h

Issue 2681833006: [Android] Restart input only once on focus change (Closed)
Patch Set: fixed nit Created 3 years, 10 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.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_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 261
262 void OnDidHandleKeyEvent() override; 262 void OnDidHandleKeyEvent() override;
263 void OnDidOverscroll(const ui::DidOverscrollParams& params) override; 263 void OnDidOverscroll(const ui::DidOverscrollParams& params) override;
264 void OnInputEventAck(std::unique_ptr<InputEventAck> input_event_ack) override; 264 void OnInputEventAck(std::unique_ptr<InputEventAck> input_event_ack) override;
265 void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type, 265 void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type,
266 blink::WebInputEventResult result, 266 blink::WebInputEventResult result,
267 InputEventAckState ack_result) override; 267 InputEventAckState ack_result) override;
268 void SetInputHandler(RenderWidgetInputHandler* input_handler) override; 268 void SetInputHandler(RenderWidgetInputHandler* input_handler) override;
269 void ShowVirtualKeyboard() override; 269 void ShowVirtualKeyboard() override;
270 void UpdateTextInputState() override; 270 void UpdateTextInputState() override;
271 void ClearTextInputState() override;
271 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; 272 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override;
272 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; 273 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override;
273 274
274 // RenderWidgetScreenMetricsDelegate 275 // RenderWidgetScreenMetricsDelegate
275 void Redraw() override; 276 void Redraw() override;
276 void Resize(const ResizeParams& resize_params) override; 277 void Resize(const ResizeParams& resize_params) override;
277 void SetScreenMetricsEmulationParameters( 278 void SetScreenMetricsEmulationParameters(
278 bool enabled, 279 bool enabled,
279 const blink::WebDeviceEmulationParams& params) override; 280 const blink::WebDeviceEmulationParams& params) override;
280 void SetScreenRects(const gfx::Rect& view_screen_rect, 281 void SetScreenRects(const gfx::Rect& view_screen_rect,
281 const gfx::Rect& window_screen_rect) override; 282 const gfx::Rect& window_screen_rect) override;
282 283
283 // blink::WebWidgetClient 284 // blink::WebWidgetClient
284 blink::WebLayerTreeView* initializeLayerTreeView() override; 285 blink::WebLayerTreeView* initializeLayerTreeView() override;
285 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override; 286 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override;
286 void didChangeCursor(const blink::WebCursorInfo&) override; 287 void didChangeCursor(const blink::WebCursorInfo&) override;
287 void closeWidgetSoon() override; 288 void closeWidgetSoon() override;
288 void show(blink::WebNavigationPolicy) override; 289 void show(blink::WebNavigationPolicy) override;
289 blink::WebRect windowRect() override; 290 blink::WebRect windowRect() override;
290 blink::WebRect viewRect() override; 291 blink::WebRect viewRect() override;
291 void setToolTipText(const blink::WebString& text, 292 void setToolTipText(const blink::WebString& text,
292 blink::WebTextDirection hint) override; 293 blink::WebTextDirection hint) override;
293 void setWindowRect(const blink::WebRect&) override; 294 void setWindowRect(const blink::WebRect&) override;
294 blink::WebScreenInfo screenInfo() override; 295 blink::WebScreenInfo screenInfo() override;
295 void resetInputMethod() override;
296 void didHandleGestureEvent(const blink::WebGestureEvent& event, 296 void didHandleGestureEvent(const blink::WebGestureEvent& event,
297 bool event_cancelled) override; 297 bool event_cancelled) override;
298 void didOverscroll(const blink::WebFloatSize& overscrollDelta, 298 void didOverscroll(const blink::WebFloatSize& overscrollDelta,
299 const blink::WebFloatSize& accumulatedOverscroll, 299 const blink::WebFloatSize& accumulatedOverscroll,
300 const blink::WebFloatPoint& position, 300 const blink::WebFloatPoint& position,
301 const blink::WebFloatSize& velocity) override; 301 const blink::WebFloatSize& velocity) override;
302 void showVirtualKeyboardOnElementFocus() override; 302 void showVirtualKeyboardOnElementFocus() override;
303 void convertViewportToWindow(blink::WebRect* rect) override; 303 void convertViewportToWindow(blink::WebRect* rect) override;
304 void convertWindowToViewport(blink::WebFloatRect* rect) override; 304 void convertWindowToViewport(blink::WebFloatRect* rect) override;
305 bool requestPointerLock() override; 305 bool requestPointerLock() override;
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 base::TimeTicks was_shown_time_; 848 base::TimeTicks was_shown_time_;
849 849
850 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 850 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
851 851
852 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 852 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
853 }; 853 };
854 854
855 } // namespace content 855 } // namespace content
856 856
857 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 857 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698