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