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

Side by Side Diff: chrome/browser/views/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, 2 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) 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_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual void SetPageTitle(const std::wstring& title); 58 virtual void SetPageTitle(const std::wstring& title);
59 virtual void OnTabCrashed(); 59 virtual void OnTabCrashed();
60 virtual void SizeContents(const gfx::Size& size); 60 virtual void SizeContents(const gfx::Size& size);
61 virtual void Focus(); 61 virtual void Focus();
62 virtual void SetInitialFocus(); 62 virtual void SetInitialFocus();
63 virtual void StoreFocus(); 63 virtual void StoreFocus();
64 virtual void RestoreFocus(); 64 virtual void RestoreFocus();
65 65
66 // Backend implementation of RenderViewHostDelegate::View. 66 // Backend implementation of RenderViewHostDelegate::View.
67 virtual void ShowContextMenu(const ContextMenuParams& params); 67 virtual void ShowContextMenu(const ContextMenuParams& params);
68 virtual void ShowPopupMenu(const gfx::Rect& bounds,
69 int item_height,
70 double item_font_size,
71 int selected_item,
72 const std::vector<WebMenuItem>& items,
73 bool right_aligned);
68 virtual void StartDragging(const WebDropData& drop_data, 74 virtual void StartDragging(const WebDropData& drop_data,
69 WebKit::WebDragOperationsMask ops_allowed, 75 WebKit::WebDragOperationsMask ops_allowed,
70 const SkBitmap& image, 76 const SkBitmap& image,
71 const gfx::Point& image_offset); 77 const gfx::Point& image_offset);
72 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); 78 virtual void UpdateDragCursor(WebKit::WebDragOperation operation);
73 virtual void GotFocus(); 79 virtual void GotFocus();
74 virtual void TakeFocus(bool reverse); 80 virtual void TakeFocus(bool reverse);
75 81
76 private: 82 private:
77 // Signal handlers ----------------------------------------------------------- 83 // Signal handlers -----------------------------------------------------------
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 gfx::Size size_; 132 gfx::Size size_;
127 133
128 // Each individual UI for constrained dialogs currently displayed. The 134 // Each individual UI for constrained dialogs currently displayed. The
129 // objects in this vector are owned by the TabContents, not the view. 135 // objects in this vector are owned by the TabContents, not the view.
130 std::vector<ConstrainedWindowGtk*> constrained_windows_; 136 std::vector<ConstrainedWindowGtk*> constrained_windows_;
131 137
132 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); 138 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk);
133 }; 139 };
134 140
135 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 141 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.mm ('k') | chrome/browser/views/tab_contents/tab_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698