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

Side by Side Diff: content/browser/web_contents/web_contents_view_gtk.h

Issue 18281002: Move WebDropData to content::DropData and split off conversion function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build error. Created 7 years, 5 months 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_GTK_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; 49 virtual gfx::NativeView GetContentNativeView() const OVERRIDE;
50 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; 50 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE;
51 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; 51 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE;
52 virtual void OnTabCrashed(base::TerminationStatus status, 52 virtual void OnTabCrashed(base::TerminationStatus status,
53 int error_code) OVERRIDE; 53 int error_code) OVERRIDE;
54 virtual void SizeContents(const gfx::Size& size) OVERRIDE; 54 virtual void SizeContents(const gfx::Size& size) OVERRIDE;
55 virtual void Focus() OVERRIDE; 55 virtual void Focus() OVERRIDE;
56 virtual void SetInitialFocus() OVERRIDE; 56 virtual void SetInitialFocus() OVERRIDE;
57 virtual void StoreFocus() OVERRIDE; 57 virtual void StoreFocus() OVERRIDE;
58 virtual void RestoreFocus() OVERRIDE; 58 virtual void RestoreFocus() OVERRIDE;
59 virtual WebDropData* GetDropData() const OVERRIDE; 59 virtual DropData* GetDropData() const OVERRIDE;
60 virtual gfx::Rect GetViewBounds() const OVERRIDE; 60 virtual gfx::Rect GetViewBounds() const OVERRIDE;
61 61
62 // WebContentsViewPort implementation ---------------------------------------- 62 // WebContentsViewPort implementation ----------------------------------------
63 virtual void CreateView( 63 virtual void CreateView(
64 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; 64 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE;
65 virtual RenderWidgetHostView* CreateViewForWidget( 65 virtual RenderWidgetHostView* CreateViewForWidget(
66 RenderWidgetHost* render_widget_host) OVERRIDE; 66 RenderWidgetHost* render_widget_host) OVERRIDE;
67 virtual RenderWidgetHostView* CreateViewForPopupWidget( 67 virtual RenderWidgetHostView* CreateViewForPopupWidget(
68 RenderWidgetHost* render_widget_host) OVERRIDE; 68 RenderWidgetHost* render_widget_host) OVERRIDE;
69 virtual void SetPageTitle(const string16& title) OVERRIDE; 69 virtual void SetPageTitle(const string16& title) OVERRIDE;
70 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; 70 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE;
71 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; 71 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE;
72 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; 72 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE;
73 73
74 // Backend implementation of RenderViewHostDelegateView. 74 // Backend implementation of RenderViewHostDelegateView.
75 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; 75 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE;
76 virtual void ShowPopupMenu(const gfx::Rect& bounds, 76 virtual void ShowPopupMenu(const gfx::Rect& bounds,
77 int item_height, 77 int item_height,
78 double item_font_size, 78 double item_font_size,
79 int selected_item, 79 int selected_item,
80 const std::vector<WebMenuItem>& items, 80 const std::vector<WebMenuItem>& items,
81 bool right_aligned, 81 bool right_aligned,
82 bool allow_multiple_selection) OVERRIDE; 82 bool allow_multiple_selection) OVERRIDE;
83 virtual void StartDragging(const WebDropData& drop_data, 83 virtual void StartDragging(const DropData& drop_data,
84 WebKit::WebDragOperationsMask allowed_ops, 84 WebKit::WebDragOperationsMask allowed_ops,
85 const gfx::ImageSkia& image, 85 const gfx::ImageSkia& image,
86 const gfx::Vector2d& image_offset, 86 const gfx::Vector2d& image_offset,
87 const DragEventSourceInfo& event_info) OVERRIDE; 87 const DragEventSourceInfo& event_info) OVERRIDE;
88 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; 88 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE;
89 virtual void GotFocus() OVERRIDE; 89 virtual void GotFocus() OVERRIDE;
90 virtual void TakeFocus(bool reverse) OVERRIDE; 90 virtual void TakeFocus(bool reverse) OVERRIDE;
91 91
92 private: 92 private:
93 // Insert the given widget into the content area. Should only be used for 93 // Insert the given widget into the content area. Should only be used for
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // The size we want the view to be. We keep this in a separate variable 138 // The size we want the view to be. We keep this in a separate variable
139 // because resizing in GTK+ is async. 139 // because resizing in GTK+ is async.
140 gfx::Size requested_size_; 140 gfx::Size requested_size_;
141 141
142 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); 142 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk);
143 }; 143 };
144 144
145 } // namespace content 145 } // namespace content
146 146
147 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ 147 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | content/browser/web_contents/web_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698