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

Side by Side Diff: content/browser/web_contents/web_contents_view_android.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_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/port/browser/render_view_host_delegate_view.h" 9 #include "content/port/browser/render_view_host_delegate_view.h"
10 #include "content/public/browser/web_contents_view.h" 10 #include "content/public/browser/web_contents_view.h"
(...skipping 16 matching lines...) Expand all
27 // by its Java ContentViewCore counterpart, whose lifetime is managed 27 // by its Java ContentViewCore counterpart, whose lifetime is managed
28 // by the UI frontend. 28 // by the UI frontend.
29 void SetContentViewCore(ContentViewCoreImpl* content_view_core); 29 void SetContentViewCore(ContentViewCoreImpl* content_view_core);
30 30
31 // WebContentsView implementation -------------------------------------------- 31 // WebContentsView implementation --------------------------------------------
32 32
33 virtual void CreateView( 33 virtual void CreateView(
34 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; 34 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE;
35 virtual RenderWidgetHostView* CreateViewForWidget( 35 virtual RenderWidgetHostView* CreateViewForWidget(
36 RenderWidgetHost* render_widget_host) OVERRIDE; 36 RenderWidgetHost* render_widget_host) OVERRIDE;
37 virtual RenderWidgetHostView* CreateViewForPopupWidget(
38 RenderWidgetHost* render_widget_host) OVERRIDE;
37 virtual gfx::NativeView GetNativeView() const OVERRIDE; 39 virtual gfx::NativeView GetNativeView() const OVERRIDE;
38 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; 40 virtual gfx::NativeView GetContentNativeView() const OVERRIDE;
39 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; 41 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE;
40 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; 42 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE;
41 virtual void SetPageTitle(const string16& title) OVERRIDE; 43 virtual void SetPageTitle(const string16& title) OVERRIDE;
42 virtual void OnTabCrashed(base::TerminationStatus status, 44 virtual void OnTabCrashed(base::TerminationStatus status,
43 int error_code) OVERRIDE; 45 int error_code) OVERRIDE;
44 virtual void SizeContents(const gfx::Size& size) OVERRIDE; 46 virtual void SizeContents(const gfx::Size& size) OVERRIDE;
45 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; 47 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE;
46 virtual void Focus() OVERRIDE; 48 virtual void Focus() OVERRIDE;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 82
81 // Interface for extensions to WebContentsView. Used to show the context menu. 83 // Interface for extensions to WebContentsView. Used to show the context menu.
82 scoped_ptr<WebContentsViewDelegate> delegate_; 84 scoped_ptr<WebContentsViewDelegate> delegate_;
83 85
84 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); 86 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid);
85 }; 87 };
86 88
87 } // namespace content 89 } // namespace content
88 90
89 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 91 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/browser/web_contents/web_contents_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698