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

Side by Side Diff: chrome/browser/ui/panels/panel_host.h

Issue 10837112: Add WebContents* to some more WebContentsDelegate methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 4 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
« no previous file with comments | « chrome/browser/ui/gtk/web_dialog_gtk.cc ('k') | chrome/browser/ui/panels/panel_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/extensions/extension_function_dispatcher.h" 10 #include "chrome/browser/extensions/extension_function_dispatcher.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual void CloseContents(content::WebContents* source) OVERRIDE; 54 virtual void CloseContents(content::WebContents* source) OVERRIDE;
55 virtual void MoveContents(content::WebContents* source, 55 virtual void MoveContents(content::WebContents* source,
56 const gfx::Rect& pos) OVERRIDE; 56 const gfx::Rect& pos) OVERRIDE;
57 virtual bool IsPopupOrPanel( 57 virtual bool IsPopupOrPanel(
58 const content::WebContents* source) const OVERRIDE; 58 const content::WebContents* source) const OVERRIDE;
59 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE; 59 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE;
60 virtual bool IsApplication() const OVERRIDE; 60 virtual bool IsApplication() const OVERRIDE;
61 virtual bool HandleContextMenu( 61 virtual bool HandleContextMenu(
62 const content::ContextMenuParams& params) OVERRIDE; 62 const content::ContextMenuParams& params) OVERRIDE;
63 virtual void HandleKeyboardEvent( 63 virtual void HandleKeyboardEvent(
64 content::WebContents* source,
64 const content::NativeWebKeyboardEvent& event) OVERRIDE; 65 const content::NativeWebKeyboardEvent& event) OVERRIDE;
65 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; 66 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE;
66 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, 67 virtual void ResizeDueToAutoResize(content::WebContents* web_contents,
67 const gfx::Size& new_size) OVERRIDE; 68 const gfx::Size& new_size) OVERRIDE;
68 69
69 // content::WebContentsObserver overrides. 70 // content::WebContentsObserver overrides.
70 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; 71 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE;
71 virtual void WebContentsDestroyed( 72 virtual void WebContentsDestroyed(
72 content::WebContents* web_contents) OVERRIDE; 73 content::WebContents* web_contents) OVERRIDE;
73 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 74 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
(...skipping 23 matching lines...) Expand all
97 // The following factory is used to close the panel via the message loop. 98 // The following factory is used to close the panel via the message loop.
98 base::WeakPtrFactory<PanelHost> weak_factory_; 99 base::WeakPtrFactory<PanelHost> weak_factory_;
99 100
100 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; 101 scoped_ptr<FaviconTabHelper> favicon_tab_helper_;
101 scoped_ptr<content::WebContents> web_contents_; 102 scoped_ptr<content::WebContents> web_contents_;
102 103
103 DISALLOW_COPY_AND_ASSIGN(PanelHost); 104 DISALLOW_COPY_AND_ASSIGN(PanelHost);
104 }; 105 };
105 106
106 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ 107 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/web_dialog_gtk.cc ('k') | chrome/browser/ui/panels/panel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698