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

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

Issue 7227007: [Mac] Show correct cursor after context menu is closed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include <vector>
13 13
14 #include "base/memory/scoped_nsobject.h" 14 #include "base/memory/scoped_nsobject.h"
15 #include "base/memory/scoped_ptr.h"
15 #include "chrome/browser/ui/cocoa/base_view.h" 16 #include "chrome/browser/ui/cocoa/base_view.h"
16 #include "content/browser/tab_contents/tab_contents_view.h" 17 #include "content/browser/tab_contents/tab_contents_view.h"
17 #include "content/common/notification_observer.h" 18 #include "content/common/notification_observer.h"
18 #include "content/common/notification_registrar.h" 19 #include "content/common/notification_registrar.h"
19 #include "ui/gfx/size.h" 20 #include "ui/gfx/size.h"
20 21
21 @class FocusTracker; 22 @class FocusTracker;
23 class RenderViewContextMenuMac;
22 @class SadTabController; 24 @class SadTabController;
23 class SkBitmap; 25 class SkBitmap;
24 class TabContentsViewMac; 26 class TabContentsViewMac;
25 @class WebDragSource; 27 @class WebDragSource;
26 @class WebDropTarget; 28 @class WebDropTarget;
27 namespace gfx { 29 namespace gfx {
28 class Point; 30 class Point;
29 } 31 }
30 32
31 @interface TabContentsViewCocoa : BaseView { 33 @interface TabContentsViewCocoa : BaseView {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // focus returns. 120 // focus returns.
119 scoped_nsobject<FocusTracker> focus_tracker_; 121 scoped_nsobject<FocusTracker> focus_tracker_;
120 122
121 // Used to get notifications about renderers coming and going. 123 // Used to get notifications about renderers coming and going.
122 NotificationRegistrar registrar_; 124 NotificationRegistrar registrar_;
123 125
124 // Used to render the sad tab. This will be non-NULL only when the sad tab is 126 // Used to render the sad tab. This will be non-NULL only when the sad tab is
125 // visible. 127 // visible.
126 scoped_nsobject<SadTabController> sad_tab_; 128 scoped_nsobject<SadTabController> sad_tab_;
127 129
130 // The context menu. Callbacks are asynchronous so we need to keep it around.
131 scoped_ptr<RenderViewContextMenuMac> context_menu_;
132
128 // The page content's intrinsic width. 133 // The page content's intrinsic width.
129 int preferred_width_; 134 int preferred_width_;
130 135
131 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac); 136 DISALLOW_COPY_AND_ASSIGN(TabContentsViewMac);
132 }; 137 };
133 138
134 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ 139 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/tab_contents/tab_contents_view_mac.mm » ('j') | content/renderer/render_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698