OLD | NEW |
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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 virtual void GetCompositionCharacterBounds( | 564 virtual void GetCompositionCharacterBounds( |
565 std::vector<gfx::Rect>* character_bounds) OVERRIDE; | 565 std::vector<gfx::Rect>* character_bounds) OVERRIDE; |
566 virtual void GetCompositionRange(gfx::Range* range) OVERRIDE; | 566 virtual void GetCompositionRange(gfx::Range* range) OVERRIDE; |
567 #endif | 567 #endif |
568 virtual bool CanComposeInline() OVERRIDE; | 568 virtual bool CanComposeInline() OVERRIDE; |
569 virtual void DidCommitCompositorFrame() OVERRIDE; | 569 virtual void DidCommitCompositorFrame() OVERRIDE; |
570 virtual void InstrumentWillBeginFrame(int frame_id) OVERRIDE; | 570 virtual void InstrumentWillBeginFrame(int frame_id) OVERRIDE; |
571 virtual void InstrumentDidBeginFrame() OVERRIDE; | 571 virtual void InstrumentDidBeginFrame() OVERRIDE; |
572 virtual void InstrumentDidCancelFrame() OVERRIDE; | 572 virtual void InstrumentDidCancelFrame() OVERRIDE; |
573 virtual void InstrumentWillComposite() OVERRIDE; | 573 virtual void InstrumentWillComposite() OVERRIDE; |
574 #if defined(OS_ANDROID) | |
575 virtual void UpdateSelectionRootBounds() OVERRIDE; | |
576 #endif | |
577 | 574 |
578 protected: | 575 protected: |
579 explicit RenderViewImpl(RenderViewImplParams* params); | 576 explicit RenderViewImpl(RenderViewImplParams* params); |
580 | 577 |
581 void Initialize(RenderViewImplParams* params); | 578 void Initialize(RenderViewImplParams* params); |
582 virtual void SetScreenMetricsEmulationParameters( | 579 virtual void SetScreenMetricsEmulationParameters( |
583 float device_scale_factor, | 580 float device_scale_factor, |
584 const gfx::Point& root_layer_offset, | 581 const gfx::Point& root_layer_offset, |
585 float root_layer_scale) OVERRIDE; | 582 float root_layer_scale) OVERRIDE; |
586 | 583 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 #if defined(OS_ANDROID) | 764 #if defined(OS_ANDROID) |
768 void OnActivateNearestFindResult(int request_id, float x, float y); | 765 void OnActivateNearestFindResult(int request_id, float x, float y); |
769 void OnFindMatchRects(int current_version); | 766 void OnFindMatchRects(int current_version); |
770 void OnSelectPopupMenuItems(bool canceled, | 767 void OnSelectPopupMenuItems(bool canceled, |
771 const std::vector<int>& selected_indices); | 768 const std::vector<int>& selected_indices); |
772 void OnUndoScrollFocusedEditableNodeIntoRect(); | 769 void OnUndoScrollFocusedEditableNodeIntoRect(); |
773 void OnUpdateTopControlsState(bool enable_hiding, | 770 void OnUpdateTopControlsState(bool enable_hiding, |
774 bool enable_showing, | 771 bool enable_showing, |
775 bool animate); | 772 bool animate); |
776 void OnExtractSmartClipData(const gfx::Rect& rect); | 773 void OnExtractSmartClipData(const gfx::Rect& rect); |
777 void GetSelectionRootBounds(gfx::Rect* bounds) const; | |
778 #elif defined(OS_MACOSX) | 774 #elif defined(OS_MACOSX) |
779 void OnPluginImeCompositionCompleted(const base::string16& text, | 775 void OnPluginImeCompositionCompleted(const base::string16& text, |
780 int plugin_id); | 776 int plugin_id); |
781 void OnSelectPopupMenuItem(int selected_index); | 777 void OnSelectPopupMenuItem(int selected_index); |
782 void OnSetInLiveResize(bool in_live_resize); | 778 void OnSetInLiveResize(bool in_live_resize); |
783 void OnSetWindowVisibility(bool visible); | 779 void OnSetWindowVisibility(bool visible); |
784 void OnWindowFrameChanged(const gfx::Rect& window_frame, | 780 void OnWindowFrameChanged(const gfx::Rect& window_frame, |
785 const gfx::Rect& view_frame); | 781 const gfx::Rect& view_frame); |
786 #endif | 782 #endif |
787 | 783 |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 // use the Observer interface to filter IPC messages and receive frame change | 1201 // use the Observer interface to filter IPC messages and receive frame change |
1206 // notifications. | 1202 // notifications. |
1207 // --------------------------------------------------------------------------- | 1203 // --------------------------------------------------------------------------- |
1208 | 1204 |
1209 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1205 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1210 }; | 1206 }; |
1211 | 1207 |
1212 } // namespace content | 1208 } // namespace content |
1213 | 1209 |
1214 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1210 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |