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

Side by Side Diff: content/browser/web_contents/web_contents_view_android.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: RenderText fixup 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual void ShowPopupMenu(const gfx::Rect& bounds, 57 virtual void ShowPopupMenu(const gfx::Rect& bounds,
58 int item_height, 58 int item_height,
59 double item_font_size, 59 double item_font_size,
60 int selected_item, 60 int selected_item,
61 const std::vector<WebMenuItem>& items, 61 const std::vector<WebMenuItem>& items,
62 bool right_aligned, 62 bool right_aligned,
63 bool allow_multiple_selection) OVERRIDE; 63 bool allow_multiple_selection) OVERRIDE;
64 virtual void StartDragging(const WebDropData& drop_data, 64 virtual void StartDragging(const WebDropData& drop_data,
65 WebKit::WebDragOperationsMask allowed_ops, 65 WebKit::WebDragOperationsMask allowed_ops,
66 const gfx::ImageSkia& image, 66 const gfx::ImageSkia& image,
67 const gfx::Point& image_offset) OVERRIDE; 67 const gfx::Vector2d& image_offset) OVERRIDE;
68 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; 68 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE;
69 virtual void GotFocus() OVERRIDE; 69 virtual void GotFocus() OVERRIDE;
70 virtual void TakeFocus(bool reverse) OVERRIDE; 70 virtual void TakeFocus(bool reverse) OVERRIDE;
71 71
72 private: 72 private:
73 // The WebContents whose contents we display. 73 // The WebContents whose contents we display.
74 WebContentsImpl* web_contents_; 74 WebContentsImpl* web_contents_;
75 75
76 // ContentViewCoreImpl is our interface to the view system. 76 // ContentViewCoreImpl is our interface to the view system.
77 ContentViewCoreImpl* content_view_core_; 77 ContentViewCoreImpl* content_view_core_;
78 78
79 // Interface for extensions to WebContentsView. Used to show the context menu. 79 // Interface for extensions to WebContentsView. Used to show the context menu.
80 scoped_ptr<WebContentsViewDelegate> delegate_; 80 scoped_ptr<WebContentsViewDelegate> delegate_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); 82 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid);
83 }; 83 };
84 84
85 } // namespace content 85 } // namespace content
86 86
87 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 87 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698