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

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

Issue 186753002: Chromium plumbing to use the selection root bounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on Blink patch and OS_ANDROID specific Created 6 years, 9 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_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 virtual void GetCompositionCharacterBounds( 704 virtual void GetCompositionCharacterBounds(
705 std::vector<gfx::Rect>* character_bounds) OVERRIDE; 705 std::vector<gfx::Rect>* character_bounds) OVERRIDE;
706 virtual void GetCompositionRange(gfx::Range* range) OVERRIDE; 706 virtual void GetCompositionRange(gfx::Range* range) OVERRIDE;
707 #endif 707 #endif
708 virtual bool CanComposeInline() OVERRIDE; 708 virtual bool CanComposeInline() OVERRIDE;
709 virtual void DidCommitCompositorFrame() OVERRIDE; 709 virtual void DidCommitCompositorFrame() OVERRIDE;
710 virtual void InstrumentWillBeginFrame(int frame_id) OVERRIDE; 710 virtual void InstrumentWillBeginFrame(int frame_id) OVERRIDE;
711 virtual void InstrumentDidBeginFrame() OVERRIDE; 711 virtual void InstrumentDidBeginFrame() OVERRIDE;
712 virtual void InstrumentDidCancelFrame() OVERRIDE; 712 virtual void InstrumentDidCancelFrame() OVERRIDE;
713 virtual void InstrumentWillComposite() OVERRIDE; 713 virtual void InstrumentWillComposite() OVERRIDE;
714 #if defined(OS_ANDROID)
715 virtual void UpdateSelectionRootBounds();
716 #endif
714 717
715 protected: 718 protected:
716 explicit RenderViewImpl(RenderViewImplParams* params); 719 explicit RenderViewImpl(RenderViewImplParams* params);
717 720
718 void Initialize(RenderViewImplParams* params); 721 void Initialize(RenderViewImplParams* params);
719 virtual void SetScreenMetricsEmulationParameters( 722 virtual void SetScreenMetricsEmulationParameters(
720 float device_scale_factor, 723 float device_scale_factor,
721 const gfx::Point& root_layer_offset, 724 const gfx::Point& root_layer_offset,
722 float root_layer_scale) OVERRIDE; 725 float root_layer_scale) OVERRIDE;
723 726
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 void OnActivateNearestFindResult(int request_id, float x, float y); 949 void OnActivateNearestFindResult(int request_id, float x, float y);
947 void OnFindMatchRects(int current_version); 950 void OnFindMatchRects(int current_version);
948 void OnSelectPopupMenuItems(bool canceled, 951 void OnSelectPopupMenuItems(bool canceled,
949 const std::vector<int>& selected_indices); 952 const std::vector<int>& selected_indices);
950 void OnUndoScrollFocusedEditableNodeIntoRect(); 953 void OnUndoScrollFocusedEditableNodeIntoRect();
951 void OnUpdateTopControlsState(bool enable_hiding, 954 void OnUpdateTopControlsState(bool enable_hiding,
952 bool enable_showing, 955 bool enable_showing,
953 bool animate); 956 bool animate);
954 void OnPauseVideo(); 957 void OnPauseVideo();
955 void OnExtractSmartClipData(const gfx::Rect& rect); 958 void OnExtractSmartClipData(const gfx::Rect& rect);
959 void GetSelectionRootBounds(gfx::Rect* bounds) const;
956 #elif defined(OS_MACOSX) 960 #elif defined(OS_MACOSX)
957 void OnCopyToFindPboard(); 961 void OnCopyToFindPboard();
958 void OnPluginImeCompositionCompleted(const base::string16& text, 962 void OnPluginImeCompositionCompleted(const base::string16& text,
959 int plugin_id); 963 int plugin_id);
960 void OnSelectPopupMenuItem(int selected_index); 964 void OnSelectPopupMenuItem(int selected_index);
961 void OnSetInLiveResize(bool in_live_resize); 965 void OnSetInLiveResize(bool in_live_resize);
962 void OnSetWindowVisibility(bool visible); 966 void OnSetWindowVisibility(bool visible);
963 void OnWindowFrameChanged(const gfx::Rect& window_frame, 967 void OnWindowFrameChanged(const gfx::Rect& window_frame,
964 const gfx::Rect& view_frame); 968 const gfx::Rect& view_frame);
965 #endif 969 #endif
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 // use the Observer interface to filter IPC messages and receive frame change 1441 // use the Observer interface to filter IPC messages and receive frame change
1438 // notifications. 1442 // notifications.
1439 // --------------------------------------------------------------------------- 1443 // ---------------------------------------------------------------------------
1440 1444
1441 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1445 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1442 }; 1446 };
1443 1447
1444 } // namespace content 1448 } // namespace content
1445 1449
1446 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1450 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698