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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 // Overridden from RenderWidgetHostViewPort: | 162 // Overridden from RenderWidgetHostViewPort: |
163 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 163 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
164 const gfx::Rect& pos) OVERRIDE; | 164 const gfx::Rect& pos) OVERRIDE; |
165 virtual void InitAsFullscreen( | 165 virtual void InitAsFullscreen( |
166 RenderWidgetHostView* reference_host_view) OVERRIDE; | 166 RenderWidgetHostView* reference_host_view) OVERRIDE; |
167 virtual void WasShown() OVERRIDE; | 167 virtual void WasShown() OVERRIDE; |
168 virtual void WasHidden() OVERRIDE; | 168 virtual void WasHidden() OVERRIDE; |
169 virtual void MovePluginWindows( | 169 virtual void MovePluginWindows( |
170 const gfx::Vector2d& scroll_offset, | 170 const gfx::Vector2d& scroll_offset, |
171 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; | 171 const std::vector<WebPluginGeometry>& moves) OVERRIDE; |
172 virtual void Focus() OVERRIDE; | 172 virtual void Focus() OVERRIDE; |
173 virtual void Blur() OVERRIDE; | 173 virtual void Blur() OVERRIDE; |
174 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; | 174 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; |
175 virtual void SetIsLoading(bool is_loading) OVERRIDE; | 175 virtual void SetIsLoading(bool is_loading) OVERRIDE; |
176 virtual void TextInputTypeChanged(ui::TextInputType type, | 176 virtual void TextInputTypeChanged(ui::TextInputType type, |
177 bool can_compose_inline, | 177 bool can_compose_inline, |
178 ui::TextInputMode input_mode) OVERRIDE; | 178 ui::TextInputMode input_mode) OVERRIDE; |
179 virtual void ImeCancelComposition() OVERRIDE; | 179 virtual void ImeCancelComposition() OVERRIDE; |
180 virtual void ImeCompositionRangeChanged( | 180 virtual void ImeCompositionRangeChanged( |
181 const ui::Range& range, | 181 const ui::Range& range, |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 PaintObserver* paint_observer_; | 661 PaintObserver* paint_observer_; |
662 | 662 |
663 #if defined(OS_WIN) | 663 #if defined(OS_WIN) |
664 scoped_ptr<TransientWindowObserver> transient_observer_; | 664 scoped_ptr<TransientWindowObserver> transient_observer_; |
665 | 665 |
666 // The list of rectangles from transient and constrained windows over this | 666 // The list of rectangles from transient and constrained windows over this |
667 // view. Windowed NPAPI plugins shouldn't draw over them. | 667 // view. Windowed NPAPI plugins shouldn't draw over them. |
668 std::vector<gfx::Rect> transient_rects_; | 668 std::vector<gfx::Rect> transient_rects_; |
669 std::vector<gfx::Rect> constrained_rects_; | 669 std::vector<gfx::Rect> constrained_rects_; |
670 | 670 |
671 typedef std::map<HWND, webkit::npapi::WebPluginGeometry> PluginWindowMoves; | 671 typedef std::map<HWND, WebPluginGeometry> PluginWindowMoves; |
672 // Contains information about each windowed plugin's clip and cutout rects ( | 672 // Contains information about each windowed plugin's clip and cutout rects ( |
673 // from the renderer). This is needed because when the transient windoiws | 673 // from the renderer). This is needed because when the transient windoiws |
674 // over this view changes, we need this information in order to create a new | 674 // over this view changes, we need this information in order to create a new |
675 // region for the HWND. | 675 // region for the HWND. |
676 PluginWindowMoves plugin_window_moves_; | 676 PluginWindowMoves plugin_window_moves_; |
677 #endif | 677 #endif |
678 | 678 |
679 base::TimeTicks last_draw_ended_; | 679 base::TimeTicks last_draw_ended_; |
680 | 680 |
681 // Subscriber that listens to frame presentation events. | 681 // Subscriber that listens to frame presentation events. |
682 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; | 682 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; |
683 | 683 |
684 // YUV readback pipeline. | 684 // YUV readback pipeline. |
685 scoped_ptr<content::ReadbackYUVInterface> | 685 scoped_ptr<content::ReadbackYUVInterface> |
686 yuv_readback_pipeline_; | 686 yuv_readback_pipeline_; |
687 | 687 |
688 TouchEditingClient* touch_editing_client_; | 688 TouchEditingClient* touch_editing_client_; |
689 | 689 |
690 ui::LatencyInfo software_latency_info_; | 690 ui::LatencyInfo software_latency_info_; |
691 | 691 |
692 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 692 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
693 }; | 693 }; |
694 | 694 |
695 } // namespace content | 695 } // namespace content |
696 | 696 |
697 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 697 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |