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

Side by Side Diff: content/port/browser/render_view_host_delegate_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: 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_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ 5 #ifndef CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_
6 #define CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ 6 #define CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/public/common/context_menu_source_type.h" 12 #include "content/public/common/context_menu_source_type.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
14 14
15 class SkBitmap; 15 class SkBitmap;
16 struct WebDropData; 16 struct WebDropData;
17 struct WebMenuItem; 17 struct WebMenuItem;
18 18
19 namespace gfx { 19 namespace gfx {
20 class ImageSkia; 20 class ImageSkia;
21 class Point;
22 class Rect; 21 class Rect;
22 class Vector2d;
23 } 23 }
24 24
25 namespace content { 25 namespace content {
26 26
27 struct ContextMenuParams; 27 struct ContextMenuParams;
28 28
29 // This class provides a way for the RenderViewHost to reach out to its 29 // This class provides a way for the RenderViewHost to reach out to its
30 // delegate's view. It only needs to be implemented by embedders if they don't 30 // delegate's view. It only needs to be implemented by embedders if they don't
31 // use the default WebContentsView implementations. 31 // use the default WebContentsView implementations.
32 class CONTENT_EXPORT RenderViewHostDelegateView { 32 class CONTENT_EXPORT RenderViewHostDelegateView {
(...skipping 13 matching lines...) Expand all
46 const std::vector<WebMenuItem>& items, 46 const std::vector<WebMenuItem>& items,
47 bool right_aligned, 47 bool right_aligned,
48 bool allow_multiple_selection) = 0; 48 bool allow_multiple_selection) = 0;
49 49
50 // The user started dragging content of the specified type within the 50 // The user started dragging content of the specified type within the
51 // RenderView. Contextual information about the dragged content is supplied 51 // RenderView. Contextual information about the dragged content is supplied
52 // by WebDropData. 52 // by WebDropData.
53 virtual void StartDragging(const WebDropData& drop_data, 53 virtual void StartDragging(const WebDropData& drop_data,
54 WebKit::WebDragOperationsMask allowed_ops, 54 WebKit::WebDragOperationsMask allowed_ops,
55 const gfx::ImageSkia& image, 55 const gfx::ImageSkia& image,
56 const gfx::Point& image_offset) {} 56 const gfx::Vector2d& image_offset) {}
57 57
58 // The page wants to update the mouse cursor during a drag & drop operation. 58 // The page wants to update the mouse cursor during a drag & drop operation.
59 // |operation| describes the current operation (none, move, copy, link.) 59 // |operation| describes the current operation (none, move, copy, link.)
60 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} 60 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {}
61 61
62 // Notification that view for this delegate got the focus. 62 // Notification that view for this delegate got the focus.
63 virtual void GotFocus() {} 63 virtual void GotFocus() {}
64 64
65 // Callback to inform the browser that the page is returning the focus to 65 // Callback to inform the browser that the page is returning the focus to
66 // the browser's chrome. If reverse is true, it means the focus was 66 // the browser's chrome. If reverse is true, it means the focus was
67 // retrieved by doing a Shift-Tab. 67 // retrieved by doing a Shift-Tab.
68 virtual void TakeFocus(bool reverse) {} 68 virtual void TakeFocus(bool reverse) {}
69 69
70 protected: 70 protected:
71 virtual ~RenderViewHostDelegateView() {} 71 virtual ~RenderViewHostDelegateView() {}
72 }; 72 };
73 73
74 } // namespace content 74 } // namespace content
75 75
76 #endif // CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_ 76 #endif // CONTENT_PORT_BROWSER_RENDER_VIEW_HOST_DELEGATE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698