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_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 102 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
103 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 103 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
104 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE; | 104 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE; |
105 virtual void OnTabCrashed(base::TerminationStatus status, | 105 virtual void OnTabCrashed(base::TerminationStatus status, |
106 int error_code) OVERRIDE; | 106 int error_code) OVERRIDE; |
107 virtual void SizeContents(const gfx::Size& size) OVERRIDE; | 107 virtual void SizeContents(const gfx::Size& size) OVERRIDE; |
108 virtual void Focus() OVERRIDE; | 108 virtual void Focus() OVERRIDE; |
109 virtual void SetInitialFocus() OVERRIDE; | 109 virtual void SetInitialFocus() OVERRIDE; |
110 virtual void StoreFocus() OVERRIDE; | 110 virtual void StoreFocus() OVERRIDE; |
111 virtual void RestoreFocus() OVERRIDE; | 111 virtual void RestoreFocus() OVERRIDE; |
112 virtual WebDropData* GetDropData() const OVERRIDE; | 112 virtual DropData* GetDropData() const OVERRIDE; |
113 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 113 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
114 | 114 |
115 // Overridden from WebContentsViewPort: | 115 // Overridden from WebContentsViewPort: |
116 virtual void CreateView( | 116 virtual void CreateView( |
117 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; | 117 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; |
118 virtual RenderWidgetHostView* CreateViewForWidget( | 118 virtual RenderWidgetHostView* CreateViewForWidget( |
119 RenderWidgetHost* render_widget_host) OVERRIDE; | 119 RenderWidgetHost* render_widget_host) OVERRIDE; |
120 virtual RenderWidgetHostView* CreateViewForPopupWidget( | 120 virtual RenderWidgetHostView* CreateViewForPopupWidget( |
121 RenderWidgetHost* render_widget_host) OVERRIDE; | 121 RenderWidgetHost* render_widget_host) OVERRIDE; |
122 virtual void SetPageTitle(const string16& title) OVERRIDE; | 122 virtual void SetPageTitle(const string16& title) OVERRIDE; |
123 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 123 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
124 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; | 124 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; |
125 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; | 125 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; |
126 | 126 |
127 // Overridden from RenderViewHostDelegateView: | 127 // Overridden from RenderViewHostDelegateView: |
128 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; | 128 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; |
129 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 129 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
130 int item_height, | 130 int item_height, |
131 double item_font_size, | 131 double item_font_size, |
132 int selected_item, | 132 int selected_item, |
133 const std::vector<WebMenuItem>& items, | 133 const std::vector<WebMenuItem>& items, |
134 bool right_aligned, | 134 bool right_aligned, |
135 bool allow_multiple_selection) OVERRIDE; | 135 bool allow_multiple_selection) OVERRIDE; |
136 virtual void StartDragging(const WebDropData& drop_data, | 136 virtual void StartDragging(const DropData& drop_data, |
137 WebKit::WebDragOperationsMask operations, | 137 WebKit::WebDragOperationsMask operations, |
138 const gfx::ImageSkia& image, | 138 const gfx::ImageSkia& image, |
139 const gfx::Vector2d& image_offset, | 139 const gfx::Vector2d& image_offset, |
140 const DragEventSourceInfo& event_info) OVERRIDE; | 140 const DragEventSourceInfo& event_info) OVERRIDE; |
141 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 141 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
142 virtual void GotFocus() OVERRIDE; | 142 virtual void GotFocus() OVERRIDE; |
143 virtual void TakeFocus(bool reverse) OVERRIDE; | 143 virtual void TakeFocus(bool reverse) OVERRIDE; |
144 | 144 |
145 // Overridden from OverscrollControllerDelegate: | 145 // Overridden from OverscrollControllerDelegate: |
146 virtual void OnOverscrollUpdate(float delta_x, float delta_y) OVERRIDE; | 146 virtual void OnOverscrollUpdate(float delta_x, float delta_y) OVERRIDE; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 scoped_ptr<ChildWindowObserver> child_window_observer_; | 193 scoped_ptr<ChildWindowObserver> child_window_observer_; |
194 #endif | 194 #endif |
195 | 195 |
196 // The WebContentsImpl whose contents we display. | 196 // The WebContentsImpl whose contents we display. |
197 WebContentsImpl* web_contents_; | 197 WebContentsImpl* web_contents_; |
198 | 198 |
199 scoped_ptr<WebContentsViewDelegate> delegate_; | 199 scoped_ptr<WebContentsViewDelegate> delegate_; |
200 | 200 |
201 WebKit::WebDragOperationsMask current_drag_op_; | 201 WebKit::WebDragOperationsMask current_drag_op_; |
202 | 202 |
203 scoped_ptr<WebDropData> current_drop_data_; | 203 scoped_ptr<DropData> current_drop_data_; |
204 | 204 |
205 WebDragDestDelegate* drag_dest_delegate_; | 205 WebDragDestDelegate* drag_dest_delegate_; |
206 | 206 |
207 // We keep track of the render view host we're dragging over. If it changes | 207 // We keep track of the render view host we're dragging over. If it changes |
208 // during a drag, we need to re-send the DragEnter message. WARNING: | 208 // during a drag, we need to re-send the DragEnter message. WARNING: |
209 // this pointer should never be dereferenced. We only use it for comparing | 209 // this pointer should never be dereferenced. We only use it for comparing |
210 // pointers. | 210 // pointers. |
211 void* current_rvh_for_drag_; | 211 void* current_rvh_for_drag_; |
212 | 212 |
213 bool overscroll_change_brightness_; | 213 bool overscroll_change_brightness_; |
(...skipping 12 matching lines...) Expand all Loading... |
226 scoped_ptr<ShadowLayerDelegate> overscroll_shadow_; | 226 scoped_ptr<ShadowLayerDelegate> overscroll_shadow_; |
227 | 227 |
228 scoped_ptr<TouchEditableImplAura> touch_editable_; | 228 scoped_ptr<TouchEditableImplAura> touch_editable_; |
229 | 229 |
230 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); | 230 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); |
231 }; | 231 }; |
232 | 232 |
233 } // namespace content | 233 } // namespace content |
234 | 234 |
235 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 235 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
OLD | NEW |