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

Side by Side Diff: content/public/browser/web_contents_view_delegate.h

Issue 10031044: TabContents -> WebContentsImpl, part 5. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (fixed) Created 8 years, 8 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) 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_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(TOOLKIT_GTK) 9 #if defined(TOOLKIT_GTK)
10 #include <gtk/gtk.h> 10 #include <gtk/gtk.h>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual void RestoreFocus() = 0; 53 virtual void RestoreFocus() = 0;
54 virtual bool Focus() = 0; 54 virtual bool Focus() = 0;
55 virtual void TakeFocus(bool reverse) = 0; 55 virtual void TakeFocus(bool reverse) = 0;
56 virtual void SizeChanged(const gfx::Size& size) = 0; 56 virtual void SizeChanged(const gfx::Size& size) = 0;
57 #elif defined(TOOLKIT_GTK) 57 #elif defined(TOOLKIT_GTK)
58 // Initializes the WebContentsViewDelegate. 58 // Initializes the WebContentsViewDelegate.
59 virtual void Initialize(GtkWidget* expanded_container, 59 virtual void Initialize(GtkWidget* expanded_container,
60 ui::FocusStoreGtk* focus_store) = 0; 60 ui::FocusStoreGtk* focus_store) = 0;
61 61
62 // Returns the top widget that contains |view| passed in from WrapView. This 62 // Returns the top widget that contains |view| passed in from WrapView. This
63 // is exposed through TabContentsViewGtk::GetNativeView() when a wrapper is 63 // is exposed through WebContentsViewGtk::GetNativeView() when a wrapper is
64 // supplied to a TabContentsViewGtk. 64 // supplied to a WebContentsViewGtk.
65 virtual gfx::NativeView GetNativeView() const = 0; 65 virtual gfx::NativeView GetNativeView() const = 0;
66 66
67 // Handles a focus event from the renderer process. 67 // Handles a focus event from the renderer process.
68 virtual void Focus() = 0; 68 virtual void Focus() = 0;
69 69
70 // Gives the delegate a first chance at focus events from our render widget 70 // Gives the delegate a first chance at focus events from our render widget
71 // host, before the main view invokes its default behaviour. Returns TRUE if 71 // host, before the main view invokes its default behaviour. Returns TRUE if
72 // |return_value| has been set and that value should be returned to GTK+. 72 // |return_value| has been set and that value should be returned to GTK+.
73 virtual gboolean OnNativeViewFocusEvent(GtkWidget* widget, 73 virtual gboolean OnNativeViewFocusEvent(GtkWidget* widget,
74 GtkDirectionType type, 74 GtkDirectionType type,
75 gboolean* return_value) = 0; 75 gboolean* return_value) = 0;
76 #elif defined(OS_MACOSX) 76 #elif defined(OS_MACOSX)
77 // Returns a newly-created delegate for the RenderWidgetHostViewMac, to handle 77 // Returns a newly-created delegate for the RenderWidgetHostViewMac, to handle
78 // events on the responder chain. 78 // events on the responder chain.
79 virtual NSObject<RenderWidgetHostViewMacDelegate>* 79 virtual NSObject<RenderWidgetHostViewMacDelegate>*
80 CreateRenderWidgetHostViewDelegate( 80 CreateRenderWidgetHostViewDelegate(
81 RenderWidgetHost* render_widget_host) = 0; 81 RenderWidgetHost* render_widget_host) = 0;
82 82
83 // Notifications that the native view was created/destroyed. 83 // Notifications that the native view was created/destroyed.
84 virtual void NativeViewCreated(NSView* view) = 0; 84 virtual void NativeViewCreated(NSView* view) = 0;
85 virtual void NativeViewDestroyed(NSView* view) = 0; 85 virtual void NativeViewDestroyed(NSView* view) = 0;
86 #endif 86 #endif
87 }; 87 };
88 88
89 } // namespace content 89 } // namespace content
90 90
91 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_ 91 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_WIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698