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