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

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

Issue 2650113004: [WIP] Add support for Android SuggestionSpans when editing text (Closed)
Patch Set: Uploading the latest version from my repo so I can reference it Created 3 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
« 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 blink::WebTextDirection hint) override; 295 blink::WebTextDirection hint) override;
296 void setWindowRect(const blink::WebRect&) override; 296 void setWindowRect(const blink::WebRect&) override;
297 blink::WebScreenInfo screenInfo() override; 297 blink::WebScreenInfo screenInfo() override;
298 void didHandleGestureEvent(const blink::WebGestureEvent& event, 298 void didHandleGestureEvent(const blink::WebGestureEvent& event,
299 bool event_cancelled) override; 299 bool event_cancelled) override;
300 void didOverscroll(const blink::WebFloatSize& overscrollDelta, 300 void didOverscroll(const blink::WebFloatSize& overscrollDelta,
301 const blink::WebFloatSize& accumulatedOverscroll, 301 const blink::WebFloatSize& accumulatedOverscroll,
302 const blink::WebFloatPoint& position, 302 const blink::WebFloatPoint& position,
303 const blink::WebFloatSize& velocity) override; 303 const blink::WebFloatSize& velocity) override;
304 void showVirtualKeyboardOnElementFocus() override; 304 void showVirtualKeyboardOnElementFocus() override;
305 void updateCompositionInfo(bool immediate_request) override;
305 void convertViewportToWindow(blink::WebRect* rect) override; 306 void convertViewportToWindow(blink::WebRect* rect) override;
306 void convertWindowToViewport(blink::WebFloatRect* rect) override; 307 void convertWindowToViewport(blink::WebFloatRect* rect) override;
307 bool requestPointerLock() override; 308 bool requestPointerLock() override;
308 void requestPointerUnlock() override; 309 void requestPointerUnlock() override;
309 bool isPointerLocked() override; 310 bool isPointerLocked() override;
310 void startDragging(blink::WebReferrerPolicy policy, 311 void startDragging(blink::WebReferrerPolicy policy,
311 const blink::WebDragData& data, 312 const blink::WebDragData& data,
312 blink::WebDragOperationsMask mask, 313 blink::WebDragOperationsMask mask,
313 const blink::WebImage& image, 314 const blink::WebImage& image,
314 const blink::WebPoint& imageOffset) override; 315 const blink::WebPoint& imageOffset) override;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 gfx::Rect AdjustValidationMessageAnchor(const gfx::Rect& anchor); 373 gfx::Rect AdjustValidationMessageAnchor(const gfx::Rect& anchor);
373 374
374 // Checks if the selection bounds have been changed. If they are changed, 375 // Checks if the selection bounds have been changed. If they are changed,
375 // the new value will be sent to the browser process. 376 // the new value will be sent to the browser process.
376 void UpdateSelectionBounds(); 377 void UpdateSelectionBounds();
377 378
378 virtual void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end); 379 virtual void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end);
379 380
380 void OnShowHostContextMenu(ContextMenuParams* params); 381 void OnShowHostContextMenu(ContextMenuParams* params);
381 382
382 // Checks if the composition range or composition character bounds have been
383 // changed. If they are changed, the new value will be sent to the browser
384 // process. This method does nothing when the browser process is not able to
385 // handle composition range and composition character bounds.
386 // If immediate_request is true, render sends the latest composition info to
387 // the browser even if the composition info is not changed.
388 void UpdateCompositionInfo(bool immediate_request);
389
390 // Called when the Widget has changed size as a result of an auto-resize. 383 // Called when the Widget has changed size as a result of an auto-resize.
391 void DidAutoResize(const gfx::Size& new_size); 384 void DidAutoResize(const gfx::Size& new_size);
392 385
393 // Indicates whether this widget has focus. 386 // Indicates whether this widget has focus.
394 bool has_focus() const { return has_focus_; } 387 bool has_focus() const { return has_focus_; }
395 388
396 MouseLockDispatcher* mouse_lock_dispatcher() const { 389 MouseLockDispatcher* mouse_lock_dispatcher() const {
397 return mouse_lock_dispatcher_.get(); 390 return mouse_lock_dispatcher_.get();
398 } 391 }
399 392
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 uint32_t current_content_source_id_; 862 uint32_t current_content_source_id_;
870 863
871 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 864 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
872 865
873 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 866 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
874 }; 867 };
875 868
876 } // namespace content 869 } // namespace content
877 870
878 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 871 #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