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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_view_mac.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_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
11 #include <string> 11 #include <string>
12 #include <vector>
12 13
13 #include "base/scoped_nsobject.h" 14 #include "base/scoped_nsobject.h"
14 #include "chrome/browser/cocoa/base_view.h" 15 #include "chrome/browser/cocoa/base_view.h"
15 #include "chrome/browser/tab_contents/tab_contents_view.h" 16 #include "chrome/browser/tab_contents/tab_contents_view.h"
16 #include "chrome/common/notification_registrar.h" 17 #include "chrome/common/notification_registrar.h"
17 #include "gfx/size.h" 18 #include "gfx/size.h"
18 19
19 @class FocusTracker; 20 @class FocusTracker;
20 @class SadTabController; 21 @class SadTabController;
21 class SkBitmap; 22 class SkBitmap;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual RenderWidgetHostView* CreateNewWidgetInternal( 70 virtual RenderWidgetHostView* CreateNewWidgetInternal(
70 int route_id, 71 int route_id,
71 WebKit::WebPopupType popup_type); 72 WebKit::WebPopupType popup_type);
72 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, 73 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view,
73 const gfx::Rect& initial_pos); 74 const gfx::Rect& initial_pos);
74 virtual bool IsEventTracking() const; 75 virtual bool IsEventTracking() const;
75 virtual void CloseTabAfterEventTracking(); 76 virtual void CloseTabAfterEventTracking();
76 77
77 // Backend implementation of RenderViewHostDelegate::View. 78 // Backend implementation of RenderViewHostDelegate::View.
78 virtual void ShowContextMenu(const ContextMenuParams& params); 79 virtual void ShowContextMenu(const ContextMenuParams& params);
80 virtual void ShowPopupMenu(const gfx::Rect& bounds,
81 int item_height,
82 double item_font_size,
83 int selected_item,
84 const std::vector<WebMenuItem>& items,
85 bool right_aligned);
79 virtual void StartDragging(const WebDropData& drop_data, 86 virtual void StartDragging(const WebDropData& drop_data,
80 WebKit::WebDragOperationsMask allowed_operations, 87 WebKit::WebDragOperationsMask allowed_operations,
81 const SkBitmap& image, 88 const SkBitmap& image,
82 const gfx::Point& image_offset); 89 const gfx::Point& image_offset);
83 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); 90 virtual void UpdateDragCursor(WebKit::WebDragOperation operation);
84 virtual void GotFocus(); 91 virtual void GotFocus();
85 virtual void TakeFocus(bool reverse); 92 virtual void TakeFocus(bool reverse);
86 93
87 // NotificationObserver implementation --------------------------------------- 94 // NotificationObserver implementation ---------------------------------------
88 95
(...skipping 22 matching lines...) Expand all
111 // visible. 118 // visible.
112 scoped_nsobject<SadTabController> sad_tab_; 119 scoped_nsobject<SadTabController> sad_tab_;
113 120
114 // The page content's intrinsic width. 121 // The page content's intrinsic width.
115 int preferred_width_; 122 int preferred_width_;
116 123
117 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); 124 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac);
118 }; 125 };
119 126
120 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ 127 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_gtk.cc ('k') | chrome/browser/tab_contents/tab_contents_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698