| 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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 virtual void GetCompositionCharacterBounds( | 708 virtual void GetCompositionCharacterBounds( |
| 709 std::vector<gfx::Rect>* character_bounds) OVERRIDE; | 709 std::vector<gfx::Rect>* character_bounds) OVERRIDE; |
| 710 virtual void GetCompositionRange(gfx::Range* range) OVERRIDE; | 710 virtual void GetCompositionRange(gfx::Range* range) OVERRIDE; |
| 711 #endif | 711 #endif |
| 712 virtual bool CanComposeInline() OVERRIDE; | 712 virtual bool CanComposeInline() OVERRIDE; |
| 713 virtual void DidCommitCompositorFrame() OVERRIDE; | 713 virtual void DidCommitCompositorFrame() OVERRIDE; |
| 714 virtual void InstrumentWillBeginFrame(int frame_id) OVERRIDE; | 714 virtual void InstrumentWillBeginFrame(int frame_id) OVERRIDE; |
| 715 virtual void InstrumentDidBeginFrame() OVERRIDE; | 715 virtual void InstrumentDidBeginFrame() OVERRIDE; |
| 716 virtual void InstrumentDidCancelFrame() OVERRIDE; | 716 virtual void InstrumentDidCancelFrame() OVERRIDE; |
| 717 virtual void InstrumentWillComposite() OVERRIDE; | 717 virtual void InstrumentWillComposite() OVERRIDE; |
| 718 #if defined(OS_ANDROID) |
| 719 virtual void UpdateSelectionRootBounds() OVERRIDE; |
| 720 #endif |
| 718 | 721 |
| 719 protected: | 722 protected: |
| 720 explicit RenderViewImpl(RenderViewImplParams* params); | 723 explicit RenderViewImpl(RenderViewImplParams* params); |
| 721 | 724 |
| 722 void Initialize(RenderViewImplParams* params); | 725 void Initialize(RenderViewImplParams* params); |
| 723 virtual void SetScreenMetricsEmulationParameters( | 726 virtual void SetScreenMetricsEmulationParameters( |
| 724 float device_scale_factor, | 727 float device_scale_factor, |
| 725 const gfx::Point& root_layer_offset, | 728 const gfx::Point& root_layer_offset, |
| 726 float root_layer_scale) OVERRIDE; | 729 float root_layer_scale) OVERRIDE; |
| 727 | 730 |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1436 // use the Observer interface to filter IPC messages and receive frame change | 1440 // use the Observer interface to filter IPC messages and receive frame change |
| 1437 // notifications. | 1441 // notifications. |
| 1438 // --------------------------------------------------------------------------- | 1442 // --------------------------------------------------------------------------- |
| 1439 | 1443 |
| 1440 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1444 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1441 }; | 1445 }; |
| 1442 | 1446 |
| 1443 } // namespace content | 1447 } // namespace content |
| 1444 | 1448 |
| 1445 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1449 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |