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

Side by Side Diff: content/shell/browser/shell.h

Issue 691823002: Add WebContents source to methods in WebContentsDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « content/public/test/content_browser_test_utils.cc ('k') | content/shell/browser/shell.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_SHELL_BROWSER_SHELL_H_ 4 #ifndef CONTENT_SHELL_BROWSER_SHELL_H_
5 #define CONTENT_SHELL_BROWSER_SHELL_H_ 5 #define CONTENT_SHELL_BROWSER_SHELL_H_
6 6
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void ToggleFullscreenModeForTab(WebContents* web_contents, 130 void ToggleFullscreenModeForTab(WebContents* web_contents,
131 bool enter_fullscreen) override; 131 bool enter_fullscreen) override;
132 bool IsFullscreenForTabOrPending( 132 bool IsFullscreenForTabOrPending(
133 const WebContents* web_contents) const override; 133 const WebContents* web_contents) const override;
134 void RequestToLockMouse(WebContents* web_contents, 134 void RequestToLockMouse(WebContents* web_contents,
135 bool user_gesture, 135 bool user_gesture,
136 bool last_unlocked_by_target) override; 136 bool last_unlocked_by_target) override;
137 void CloseContents(WebContents* source) override; 137 void CloseContents(WebContents* source) override;
138 bool CanOverscrollContent() const override; 138 bool CanOverscrollContent() const override;
139 void DidNavigateMainFramePostCommit(WebContents* web_contents) override; 139 void DidNavigateMainFramePostCommit(WebContents* web_contents) override;
140 JavaScriptDialogManager* GetJavaScriptDialogManager() override; 140 JavaScriptDialogManager* GetJavaScriptDialogManager(
141 WebContents* source) override;
141 #if defined(OS_MACOSX) 142 #if defined(OS_MACOSX)
142 void HandleKeyboardEvent(WebContents* source, 143 void HandleKeyboardEvent(WebContents* source,
143 const NativeWebKeyboardEvent& event) override; 144 const NativeWebKeyboardEvent& event) override;
144 #endif 145 #endif
145 bool AddMessageToConsole(WebContents* source, 146 bool AddMessageToConsole(WebContents* source,
146 int32 level, 147 int32 level,
147 const base::string16& message, 148 const base::string16& message,
148 int32 line_no, 149 int32 line_no,
149 const base::string16& source_id) override; 150 const base::string16& source_id) override;
150 void RendererUnresponsive(WebContents* source) override; 151 void RendererUnresponsive(WebContents* source) override;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 static base::Callback<void(Shell*)> shell_created_callback_; 256 static base::Callback<void(Shell*)> shell_created_callback_;
256 257
257 // True if the destructur of Shell should post a quit closure on the current 258 // True if the destructur of Shell should post a quit closure on the current
258 // message loop if the destructed Shell object was the last one. 259 // message loop if the destructed Shell object was the last one.
259 static bool quit_message_loop_; 260 static bool quit_message_loop_;
260 }; 261 };
261 262
262 } // namespace content 263 } // namespace content
263 264
264 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ 265 #endif // CONTENT_SHELL_BROWSER_SHELL_H_
OLDNEW
« no previous file with comments | « content/public/test/content_browser_test_utils.cc ('k') | content/shell/browser/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698