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

Unified Diff: ash/common/shell_delegate.h

Issue 2782263002: Add GetWebContents to ShellDelegate. (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/mus/shell_delegate_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shell_delegate.h
diff --git a/ash/common/shell_delegate.h b/ash/common/shell_delegate.h
index f584cf75cf51036bb3b4d3999225fadb71aecb60..6cb23ed5ea77b77b36a712b03d8cc5e3abbfbc2a 100644
--- a/ash/common/shell_delegate.h
+++ b/ash/common/shell_delegate.h
@@ -14,6 +14,10 @@
class GURL;
+namespace content {
+class WebContents;
+}
+
namespace gfx {
class Image;
}
@@ -83,7 +87,7 @@ class ASH_EXPORT ShellDelegate {
// Invoked when the user uses Ctrl-Shift-Q to close chrome.
virtual void Exit() = 0;
- // Create a shell-specific keyboard::KeyboardUI
+ // Creates a shell-specific keyboard::KeyboardUI
virtual keyboard::KeyboardUI* CreateKeyboardUI() = 0;
// Opens the |url| in a new browser tab.
@@ -114,7 +118,7 @@ class ASH_EXPORT ShellDelegate {
// Creates a GPU support object. Shell takes ownership of the object.
virtual GPUSupport* CreateGPUSupport() = 0;
- // Get the product name.
+ // Gets the product name.
virtual base::string16 GetProductName() const = 0;
virtual void OpenKeyboardShortcutHelpPage() const {}
@@ -136,6 +140,9 @@ class ASH_EXPORT ShellDelegate {
// Toggles the status of touchpad between enabled and disabled.
virtual void ToggleTouchpad() {}
+
+ // Gets the WebContents.
+ virtual content::WebContents* GetWebContents() = 0;
};
} // namespace ash
« no previous file with comments | « no previous file | ash/mus/shell_delegate_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698