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_TEST_TEST_WEB_CONTENTS_VIEW_H_ | 5 #ifndef CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ |
6 #define CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ | 6 #define CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "content/port/browser/render_view_host_delegate_view.h" | 9 #include "content/port/browser/render_view_host_delegate_view.h" |
10 #include "content/public/browser/web_contents_view.h" | 10 #include "content/public/browser/web_contents_view.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 23 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
24 int item_height, | 24 int item_height, |
25 double item_font_size, | 25 double item_font_size, |
26 int selected_item, | 26 int selected_item, |
27 const std::vector<WebMenuItem>& items, | 27 const std::vector<WebMenuItem>& items, |
28 bool right_aligned, | 28 bool right_aligned, |
29 bool allow_multiple_selection) OVERRIDE; | 29 bool allow_multiple_selection) OVERRIDE; |
30 virtual void StartDragging(const WebDropData& drop_data, | 30 virtual void StartDragging(const WebDropData& drop_data, |
31 WebKit::WebDragOperationsMask allowed_ops, | 31 WebKit::WebDragOperationsMask allowed_ops, |
32 const gfx::ImageSkia& image, | 32 const gfx::ImageSkia& image, |
33 const gfx::Point& image_offset) OVERRIDE; | 33 const gfx::Vector2d& image_offset) OVERRIDE; |
34 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 34 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
35 virtual void GotFocus() OVERRIDE; | 35 virtual void GotFocus() OVERRIDE; |
36 virtual void TakeFocus(bool reverse) OVERRIDE; | 36 virtual void TakeFocus(bool reverse) OVERRIDE; |
37 | 37 |
38 // WebContentsView: | 38 // WebContentsView: |
39 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; | 39 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; |
40 virtual RenderWidgetHostView* CreateViewForWidget( | 40 virtual RenderWidgetHostView* CreateViewForWidget( |
41 RenderWidgetHost* render_widget_host) OVERRIDE; | 41 RenderWidgetHost* render_widget_host) OVERRIDE; |
42 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 42 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
43 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 43 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
(...skipping 13 matching lines...) Expand all Loading... |
57 virtual void CloseTabAfterEventTracking() OVERRIDE; | 57 virtual void CloseTabAfterEventTracking() OVERRIDE; |
58 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 58 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
59 | 59 |
60 private: | 60 private: |
61 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView); | 61 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace content | 64 } // namespace content |
65 | 65 |
66 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ | 66 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ |
OLD | NEW |