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

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

Issue 1153813003: Add user_gesture param to WebContentsDelegate::ActivateContents Base URL: https://chromium.googlesource.com/chromium/src.git@ug1_WebContentsImpl_Activate
Patch Set: Update callers Created 5 years, 7 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 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 "content/public/browser/web_contents_delegate.h" 10 #include "content/public/browser/web_contents_delegate.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 content::WebContents* source, 51 content::WebContents* source,
52 const content::OpenURLParams& params) override; 52 const content::OpenURLParams& params) override;
53 void NavigationStateChanged(content::WebContents* source, 53 void NavigationStateChanged(content::WebContents* source,
54 content::InvalidateTypes changed_flags) override; 54 content::InvalidateTypes changed_flags) override;
55 void AddNewContents(content::WebContents* source, 55 void AddNewContents(content::WebContents* source,
56 content::WebContents* new_contents, 56 content::WebContents* new_contents,
57 WindowOpenDisposition disposition, 57 WindowOpenDisposition disposition,
58 const gfx::Rect& initial_rect, 58 const gfx::Rect& initial_rect,
59 bool user_gesture, 59 bool user_gesture,
60 bool* was_blocked) override; 60 bool* was_blocked) override;
61 void ActivateContents(content::WebContents* contents) override; 61 void ActivateContents(content::WebContents* contents,
62 bool user_gesture) override;
62 void DeactivateContents(content::WebContents* contents) override; 63 void DeactivateContents(content::WebContents* contents) override;
63 void LoadingStateChanged(content::WebContents* source, 64 void LoadingStateChanged(content::WebContents* source,
64 bool to_different_document) override; 65 bool to_different_document) override;
65 void CloseContents(content::WebContents* source) override; 66 void CloseContents(content::WebContents* source) override;
66 void MoveContents(content::WebContents* source, 67 void MoveContents(content::WebContents* source,
67 const gfx::Rect& pos) override; 68 const gfx::Rect& pos) override;
68 bool IsPopupOrPanel(const content::WebContents* source) const override; 69 bool IsPopupOrPanel(const content::WebContents* source) const override;
69 void ContentsZoomChange(bool zoom_in) override; 70 void ContentsZoomChange(bool zoom_in) override;
70 void HandleKeyboardEvent( 71 void HandleKeyboardEvent(
71 content::WebContents* source, 72 content::WebContents* source,
(...skipping 30 matching lines...) Expand all
102 103
103 scoped_ptr<content::WebContents> web_contents_; 104 scoped_ptr<content::WebContents> web_contents_;
104 105
105 // The following factory is used to close the panel via the message loop. 106 // The following factory is used to close the panel via the message loop.
106 base::WeakPtrFactory<PanelHost> weak_factory_; 107 base::WeakPtrFactory<PanelHost> weak_factory_;
107 108
108 DISALLOW_COPY_AND_ASSIGN(PanelHost); 109 DISALLOW_COPY_AND_ASSIGN(PanelHost);
109 }; 110 };
110 111
111 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ 112 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.mm ('k') | chrome/browser/ui/panels/panel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698