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