Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1069)

Side by Side Diff: content/test/test_web_contents_view.h

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebasefinal Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 13 matching lines...) Expand all
24 virtual void ShowPopupMenu(const gfx::Rect& bounds, 24 virtual void ShowPopupMenu(const gfx::Rect& bounds,
25 int item_height, 25 int item_height,
26 double item_font_size, 26 double item_font_size,
27 int selected_item, 27 int selected_item,
28 const std::vector<WebMenuItem>& items, 28 const std::vector<WebMenuItem>& items,
29 bool right_aligned, 29 bool right_aligned,
30 bool allow_multiple_selection) OVERRIDE; 30 bool allow_multiple_selection) OVERRIDE;
31 virtual void StartDragging(const WebDropData& drop_data, 31 virtual void StartDragging(const WebDropData& drop_data,
32 WebKit::WebDragOperationsMask allowed_ops, 32 WebKit::WebDragOperationsMask allowed_ops,
33 const gfx::ImageSkia& image, 33 const gfx::ImageSkia& image,
34 const gfx::Point& image_offset) OVERRIDE; 34 const gfx::Vector2d& image_offset) OVERRIDE;
35 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; 35 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE;
36 virtual void GotFocus() OVERRIDE; 36 virtual void GotFocus() OVERRIDE;
37 virtual void TakeFocus(bool reverse) OVERRIDE; 37 virtual void TakeFocus(bool reverse) OVERRIDE;
38 38
39 // WebContentsView: 39 // WebContentsView:
40 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; 40 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE;
41 virtual RenderWidgetHostView* CreateViewForWidget( 41 virtual RenderWidgetHostView* CreateViewForWidget(
42 RenderWidgetHost* render_widget_host) OVERRIDE; 42 RenderWidgetHost* render_widget_host) OVERRIDE;
43 virtual gfx::NativeView GetNativeView() const OVERRIDE; 43 virtual gfx::NativeView GetNativeView() const OVERRIDE;
44 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; 44 virtual gfx::NativeView GetContentNativeView() const OVERRIDE;
(...skipping 13 matching lines...) Expand all
58 virtual void CloseTabAfterEventTracking() OVERRIDE; 58 virtual void CloseTabAfterEventTracking() OVERRIDE;
59 virtual gfx::Rect GetViewBounds() const OVERRIDE; 59 virtual gfx::Rect GetViewBounds() const OVERRIDE;
60 60
61 private: 61 private:
62 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView); 62 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView);
63 }; 63 };
64 64
65 } // namespace content 65 } // namespace content
66 66
67 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ 67 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698