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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_view_gtk.h

Issue 4078003: Refactoring select popup on Mac.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include <vector>
12
11 #include "app/gtk_signal.h" 13 #include "app/gtk_signal.h"
12 #include "base/scoped_ptr.h" 14 #include "base/scoped_ptr.h"
13 #include "chrome/browser/gtk/focus_store_gtk.h" 15 #include "chrome/browser/gtk/focus_store_gtk.h"
14 #include "chrome/browser/gtk/owned_widget_gtk.h" 16 #include "chrome/browser/gtk/owned_widget_gtk.h"
15 #include "chrome/browser/tab_contents/tab_contents_view.h" 17 #include "chrome/browser/tab_contents/tab_contents_view.h"
16 #include "chrome/common/notification_observer.h" 18 #include "chrome/common/notification_observer.h"
17 #include "chrome/common/notification_registrar.h" 19 #include "chrome/common/notification_registrar.h"
18 20
19 class ConstrainedWindowGtk; 21 class ConstrainedWindowGtk;
20 class RenderViewContextMenuGtk; 22 class RenderViewContextMenuGtk;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual void OnTabCrashed(); 56 virtual void OnTabCrashed();
55 virtual void SizeContents(const gfx::Size& size); 57 virtual void SizeContents(const gfx::Size& size);
56 virtual void Focus(); 58 virtual void Focus();
57 virtual void SetInitialFocus(); 59 virtual void SetInitialFocus();
58 virtual void StoreFocus(); 60 virtual void StoreFocus();
59 virtual void RestoreFocus(); 61 virtual void RestoreFocus();
60 virtual bool ShouldDrawDropShadow(); 62 virtual bool ShouldDrawDropShadow();
61 63
62 // Backend implementation of RenderViewHostDelegate::View. 64 // Backend implementation of RenderViewHostDelegate::View.
63 virtual void ShowContextMenu(const ContextMenuParams& params); 65 virtual void ShowContextMenu(const ContextMenuParams& params);
66 virtual void ShowPopupMenu(const gfx::Rect& bounds,
67 int item_height,
68 double item_font_size,
69 int selected_item,
70 const std::vector<WebMenuItem>& items,
71 bool right_aligned);
64 virtual void StartDragging(const WebDropData& drop_data, 72 virtual void StartDragging(const WebDropData& drop_data,
65 WebKit::WebDragOperationsMask allowed_ops, 73 WebKit::WebDragOperationsMask allowed_ops,
66 const SkBitmap& image, 74 const SkBitmap& image,
67 const gfx::Point& image_offset); 75 const gfx::Point& image_offset);
68 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); 76 virtual void UpdateDragCursor(WebKit::WebDragOperation operation);
69 virtual void GotFocus(); 77 virtual void GotFocus();
70 virtual void TakeFocus(bool reverse); 78 virtual void TakeFocus(bool reverse);
71 79
72 // NotificationObserver implementation --------------------------------------- 80 // NotificationObserver implementation ---------------------------------------
73 81
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 scoped_ptr<TabContentsDragSource> drag_source_; 146 scoped_ptr<TabContentsDragSource> drag_source_;
139 147
140 // The size we want the tab contents view to be. We keep this in a separate 148 // The size we want the tab contents view to be. We keep this in a separate
141 // variable because resizing in GTK+ is async. 149 // variable because resizing in GTK+ is async.
142 gfx::Size requested_size_; 150 gfx::Size requested_size_;
143 151
144 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); 152 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk);
145 }; 153 };
146 154
147 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 155 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/popup_menu_helper_mac.mm ('k') | chrome/browser/tab_contents/tab_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698