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

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

Issue 10436010: Multi-select <select> in 'external popup window' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase after reverts and re-reverts.. Created 8 years, 7 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 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual bool IsDoingDrag() const OVERRIDE; 66 virtual bool IsDoingDrag() const OVERRIDE;
67 virtual void CancelDragAndCloseTab() OVERRIDE; 67 virtual void CancelDragAndCloseTab() OVERRIDE;
68 virtual WebDropData* GetDropData() const OVERRIDE; 68 virtual WebDropData* GetDropData() const OVERRIDE;
69 virtual bool IsEventTracking() const OVERRIDE; 69 virtual bool IsEventTracking() const OVERRIDE;
70 virtual void CloseTabAfterEventTracking() OVERRIDE; 70 virtual void CloseTabAfterEventTracking() OVERRIDE;
71 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; 71 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE;
72 72
73 // Backend implementation of RenderViewHostDelegateView. 73 // Backend implementation of RenderViewHostDelegateView.
74 virtual void ShowContextMenu( 74 virtual void ShowContextMenu(
75 const content::ContextMenuParams& params) OVERRIDE; 75 const content::ContextMenuParams& params) OVERRIDE;
76 virtual void ShowPopupMenu(const gfx::Rect& bounds,
77 int item_height,
78 double item_font_size,
79 int selected_item,
80 const std::vector<WebMenuItem>& items,
81 bool right_aligned,
82 bool allow_multiple_selection) OVERRIDE;
76 virtual void StartDragging(const WebDropData& drop_data, 83 virtual void StartDragging(const WebDropData& drop_data,
77 WebKit::WebDragOperationsMask allowed_ops, 84 WebKit::WebDragOperationsMask allowed_ops,
78 const SkBitmap& image, 85 const SkBitmap& image,
79 const gfx::Point& image_offset) OVERRIDE; 86 const gfx::Point& image_offset) OVERRIDE;
80 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; 87 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE;
81 virtual void GotFocus() OVERRIDE; 88 virtual void GotFocus() OVERRIDE;
82 virtual void TakeFocus(bool reverse) OVERRIDE; 89 virtual void TakeFocus(bool reverse) OVERRIDE;
83 90
84 private: 91 private:
85 // Insert the given widget into the content area. Should only be used for 92 // Insert the given widget into the content area. Should only be used for
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // The size we want the view to be. We keep this in a separate variable 133 // The size we want the view to be. We keep this in a separate variable
127 // because resizing in GTK+ is async. 134 // because resizing in GTK+ is async.
128 gfx::Size requested_size_; 135 gfx::Size requested_size_;
129 136
130 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); 137 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk);
131 }; 138 };
132 139
133 } // namespace content 140 } // namespace content
134 141
135 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ 142 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698