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

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

Issue 11773042: Allow embedders to provide a custom view for popup (select box) widgets, (Closed) Base URL: http://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
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_MAC_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 WebContentsViewMac(WebContentsImpl* web_contents, 61 WebContentsViewMac(WebContentsImpl* web_contents,
62 WebContentsViewDelegate* delegate); 62 WebContentsViewDelegate* delegate);
63 virtual ~WebContentsViewMac(); 63 virtual ~WebContentsViewMac();
64 64
65 // WebContentsView implementation -------------------------------------------- 65 // WebContentsView implementation --------------------------------------------
66 66
67 virtual void CreateView( 67 virtual void CreateView(
68 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; 68 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE;
69 virtual RenderWidgetHostView* CreateViewForWidget( 69 virtual RenderWidgetHostView* CreateViewForWidget(
70 RenderWidgetHost* render_widget_host) OVERRIDE; 70 RenderWidgetHost* render_widget_host) OVERRIDE;
71 virtual RenderWidgetHostView* CreateViewForPopupWidget(
72 RenderWidgetHost* render_widget_host) OVERRIDE;
71 virtual gfx::NativeView GetNativeView() const OVERRIDE; 73 virtual gfx::NativeView GetNativeView() const OVERRIDE;
72 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; 74 virtual gfx::NativeView GetContentNativeView() const OVERRIDE;
73 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; 75 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE;
74 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; 76 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE;
75 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; 77 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE;
76 virtual void SetPageTitle(const string16& title) OVERRIDE; 78 virtual void SetPageTitle(const string16& title) OVERRIDE;
77 virtual void OnTabCrashed(base::TerminationStatus status, 79 virtual void OnTabCrashed(base::TerminationStatus status,
78 int error_code) OVERRIDE; 80 int error_code) OVERRIDE;
79 virtual void SizeContents(const gfx::Size& size) OVERRIDE; 81 virtual void SizeContents(const gfx::Size& size) OVERRIDE;
80 virtual void Focus() OVERRIDE; 82 virtual void Focus() OVERRIDE;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 131
130 // Whether to allow overlapping views. 132 // Whether to allow overlapping views.
131 bool allow_overlapping_views_; 133 bool allow_overlapping_views_;
132 134
133 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); 135 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac);
134 }; 136 };
135 137
136 } // namespace content 138 } // namespace content
137 139
138 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 140 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_guest.cc ('k') | content/browser/web_contents/web_contents_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698