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_WIN_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 56 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
57 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 57 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
58 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE; | 58 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE; |
59 virtual void OnTabCrashed(base::TerminationStatus status, | 59 virtual void OnTabCrashed(base::TerminationStatus status, |
60 int error_code) OVERRIDE; | 60 int error_code) OVERRIDE; |
61 virtual void SizeContents(const gfx::Size& size) OVERRIDE; | 61 virtual void SizeContents(const gfx::Size& size) OVERRIDE; |
62 virtual void Focus() OVERRIDE; | 62 virtual void Focus() OVERRIDE; |
63 virtual void SetInitialFocus() OVERRIDE; | 63 virtual void SetInitialFocus() OVERRIDE; |
64 virtual void StoreFocus() OVERRIDE; | 64 virtual void StoreFocus() OVERRIDE; |
65 virtual void RestoreFocus() OVERRIDE; | 65 virtual void RestoreFocus() OVERRIDE; |
66 virtual WebDropData* GetDropData() const OVERRIDE; | 66 virtual DropData* GetDropData() const OVERRIDE; |
67 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 67 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
68 | 68 |
69 // Overridden from WebContentsViewPort: | 69 // Overridden from WebContentsViewPort: |
70 virtual void CreateView( | 70 virtual void CreateView( |
71 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; | 71 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; |
72 virtual RenderWidgetHostView* CreateViewForWidget( | 72 virtual RenderWidgetHostView* CreateViewForWidget( |
73 RenderWidgetHost* render_widget_host) OVERRIDE; | 73 RenderWidgetHost* render_widget_host) OVERRIDE; |
74 virtual RenderWidgetHostView* CreateViewForPopupWidget( | 74 virtual RenderWidgetHostView* CreateViewForPopupWidget( |
75 RenderWidgetHost* render_widget_host) OVERRIDE; | 75 RenderWidgetHost* render_widget_host) OVERRIDE; |
76 virtual void SetPageTitle(const string16& title) OVERRIDE; | 76 virtual void SetPageTitle(const string16& title) OVERRIDE; |
77 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 77 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
78 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; | 78 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; |
79 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; | 79 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; |
80 | 80 |
81 // Implementation of RenderViewHostDelegateView. | 81 // Implementation of RenderViewHostDelegateView. |
82 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; | 82 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; |
83 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 83 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
84 int item_height, | 84 int item_height, |
85 double item_font_size, | 85 double item_font_size, |
86 int selected_item, | 86 int selected_item, |
87 const std::vector<WebMenuItem>& items, | 87 const std::vector<WebMenuItem>& items, |
88 bool right_aligned, | 88 bool right_aligned, |
89 bool allow_multiple_selection) OVERRIDE; | 89 bool allow_multiple_selection) OVERRIDE; |
90 virtual void StartDragging(const WebDropData& drop_data, | 90 virtual void StartDragging(const DropData& drop_data, |
91 WebKit::WebDragOperationsMask operations, | 91 WebKit::WebDragOperationsMask operations, |
92 const gfx::ImageSkia& image, | 92 const gfx::ImageSkia& image, |
93 const gfx::Vector2d& image_offset, | 93 const gfx::Vector2d& image_offset, |
94 const DragEventSourceInfo& event_info) OVERRIDE; | 94 const DragEventSourceInfo& event_info) OVERRIDE; |
95 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 95 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
96 virtual void GotFocus() OVERRIDE; | 96 virtual void GotFocus() OVERRIDE; |
97 virtual void TakeFocus(bool reverse) OVERRIDE; | 97 virtual void TakeFocus(bool reverse) OVERRIDE; |
98 | 98 |
99 WebContentsImpl* web_contents() const { return web_contents_; } | 99 WebContentsImpl* web_contents() const { return web_contents_; } |
100 | 100 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 scoped_refptr<WebContentsDragWin> drag_handler_; | 138 scoped_refptr<WebContentsDragWin> drag_handler_; |
139 | 139 |
140 scoped_ptr<ui::HWNDMessageFilter> hwnd_message_filter_; | 140 scoped_ptr<ui::HWNDMessageFilter> hwnd_message_filter_; |
141 | 141 |
142 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); | 142 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); |
143 }; | 143 }; |
144 | 144 |
145 } // namespace content | 145 } // namespace content |
146 | 146 |
147 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 147 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
OLD | NEW |