| 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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 int selection_start, | 492 int selection_start, |
| 493 int selection_end) override; | 493 int selection_end) override; |
| 494 void OnImeConfirmComposition(const base::string16& text, | 494 void OnImeConfirmComposition(const base::string16& text, |
| 495 const gfx::Range& replacement_range, | 495 const gfx::Range& replacement_range, |
| 496 bool keep_selection) override; | 496 bool keep_selection) override; |
| 497 void SetDeviceScaleFactor(float device_scale_factor) override; | 497 void SetDeviceScaleFactor(float device_scale_factor) override; |
| 498 bool SetDeviceColorProfile(const std::vector<char>& color_profile) override; | 498 bool SetDeviceColorProfile(const std::vector<char>& color_profile) override; |
| 499 void OnOrientationChange() override; | 499 void OnOrientationChange() override; |
| 500 ui::TextInputType GetTextInputType() override; | 500 ui::TextInputType GetTextInputType() override; |
| 501 void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) override; | 501 void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) override; |
| 502 void FocusChangeComplete() override; |
| 502 void GetCompositionCharacterBounds( | 503 void GetCompositionCharacterBounds( |
| 503 std::vector<gfx::Rect>* character_bounds) override; | 504 std::vector<gfx::Rect>* character_bounds) override; |
| 504 void GetCompositionRange(gfx::Range* range) override; | 505 void GetCompositionRange(gfx::Range* range) override; |
| 505 bool CanComposeInline() override; | 506 bool CanComposeInline() override; |
| 506 void DidCommitCompositorFrame() override; | 507 void DidCommitCompositorFrame() override; |
| 507 void InstrumentWillBeginFrame(int frame_id) override; | 508 void InstrumentWillBeginFrame(int frame_id) override; |
| 508 void InstrumentDidBeginFrame() override; | 509 void InstrumentDidBeginFrame() override; |
| 509 void InstrumentDidCancelFrame() override; | 510 void InstrumentDidCancelFrame() override; |
| 510 void InstrumentWillComposite() override; | 511 void InstrumentWillComposite() override; |
| 512 void DidCompletePageScaleAnimation() override; |
| 511 | 513 |
| 512 protected: | 514 protected: |
| 513 explicit RenderViewImpl(const ViewMsg_New_Params& params); | 515 explicit RenderViewImpl(const ViewMsg_New_Params& params); |
| 514 | 516 |
| 515 void Initialize(const ViewMsg_New_Params& params, | 517 void Initialize(const ViewMsg_New_Params& params, |
| 516 CompositorDependencies* compositor_deps, | 518 CompositorDependencies* compositor_deps, |
| 517 bool was_created_by_renderer); | 519 bool was_created_by_renderer); |
| 518 void SetScreenMetricsEmulationParameters(float device_scale_factor, | 520 void SetScreenMetricsEmulationParameters(float device_scale_factor, |
| 519 const gfx::Point& root_layer_offset, | 521 const gfx::Point& root_layer_offset, |
| 520 float root_layer_scale) override; | 522 float root_layer_scale) override; |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1047 // session, this info is sent to the browser along with other drag/drop info. | 1049 // session, this info is sent to the browser along with other drag/drop info. |
| 1048 DragEventSourceInfo possible_drag_event_info_; | 1050 DragEventSourceInfo possible_drag_event_info_; |
| 1049 | 1051 |
| 1050 // NOTE: stats_collection_observer_ should be the last members because their | 1052 // NOTE: stats_collection_observer_ should be the last members because their |
| 1051 // constructors call the AddObservers method of RenderViewImpl. | 1053 // constructors call the AddObservers method of RenderViewImpl. |
| 1052 scoped_ptr<StatsCollectionObserver> stats_collection_observer_; | 1054 scoped_ptr<StatsCollectionObserver> stats_collection_observer_; |
| 1053 | 1055 |
| 1054 typedef std::map<cc::SharedBitmapId, cc::SharedBitmap*> BitmapMap; | 1056 typedef std::map<cc::SharedBitmapId, cc::SharedBitmap*> BitmapMap; |
| 1055 BitmapMap disambiguation_bitmaps_; | 1057 BitmapMap disambiguation_bitmaps_; |
| 1056 | 1058 |
| 1059 // The bounds of the focused element in the viewport space. Updated when focus |
| 1060 // changes and when the viewport resizes. |
| 1061 blink::WebRect focused_element_bounds_; |
| 1062 |
| 1057 // --------------------------------------------------------------------------- | 1063 // --------------------------------------------------------------------------- |
| 1058 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1064 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
| 1059 // sections rather than throwing it randomly at the end. If you're adding a | 1065 // sections rather than throwing it randomly at the end. If you're adding a |
| 1060 // bunch of stuff, you should probably create a helper class and put your | 1066 // bunch of stuff, you should probably create a helper class and put your |
| 1061 // data and methods on that to avoid bloating RenderView more. You can | 1067 // data and methods on that to avoid bloating RenderView more. You can |
| 1062 // use the Observer interface to filter IPC messages and receive frame change | 1068 // use the Observer interface to filter IPC messages and receive frame change |
| 1063 // notifications. | 1069 // notifications. |
| 1064 // --------------------------------------------------------------------------- | 1070 // --------------------------------------------------------------------------- |
| 1065 | 1071 |
| 1066 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1072 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1067 }; | 1073 }; |
| 1068 | 1074 |
| 1069 } // namespace content | 1075 } // namespace content |
| 1070 | 1076 |
| 1071 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1077 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |