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

Side by Side Diff: chrome/browser/ui/extensions/shell_window.h

Issue 10534079: Add support for managing active state of platform apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed redundant GetNativeWindow() decl in BrowserWindow Created 8 years, 6 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 CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ 6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/extensions/extension_function_dispatcher.h" 10 #include "chrome/browser/extensions/extension_function_dispatcher.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Called when the title of the window changes. 71 // Called when the title of the window changes.
72 virtual void UpdateWindowTitle() {} 72 virtual void UpdateWindowTitle() {}
73 // Sub-classes should call this to determine what the window's title is on 73 // Sub-classes should call this to determine what the window's title is on
74 // startup and from within UpdateWindowTitle(). 74 // startup and from within UpdateWindowTitle().
75 virtual string16 GetTitle() const; 75 virtual string16 GetTitle() const;
76 76
77 virtual void SetFullscreen(bool fullscreen) {} 77 virtual void SetFullscreen(bool fullscreen) {}
78 virtual bool IsFullscreenOrPending() const; 78 virtual bool IsFullscreenOrPending() const;
79 79
80 // Call to notify ShellRegistry and delete the window.
81 void OnNativeClose();
82
83
80 private: 84 private:
81 // PlatformAppBrowserTest needs access to web_contents() 85 // PlatformAppBrowserTest needs access to web_contents()
82 friend class PlatformAppBrowserTest; 86 friend class PlatformAppBrowserTest;
83 87
84 // Instantiates a platform-specific ShellWindow subclass (one implementation 88 // Instantiates a platform-specific ShellWindow subclass (one implementation
85 // per platform). Public users of ShellWindow should use ShellWindow::Create. 89 // per platform). Public users of ShellWindow should use ShellWindow::Create.
86 static ShellWindow* CreateImpl(Profile* profile, 90 static ShellWindow* CreateImpl(Profile* profile,
87 const extensions::Extension* extension, 91 const extensions::Extension* extension,
88 const GURL& url, 92 const GURL& url,
89 CreateParams params); 93 CreateParams params);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 scoped_ptr<TabContentsWrapper> contents_wrapper_; 135 scoped_ptr<TabContentsWrapper> contents_wrapper_;
132 // web_contents_ is owned by contents_wrapper_. 136 // web_contents_ is owned by contents_wrapper_.
133 content::WebContents* web_contents_; 137 content::WebContents* web_contents_;
134 content::NotificationRegistrar registrar_; 138 content::NotificationRegistrar registrar_;
135 ExtensionFunctionDispatcher extension_function_dispatcher_; 139 ExtensionFunctionDispatcher extension_function_dispatcher_;
136 140
137 DISALLOW_COPY_AND_ASSIGN(ShellWindow); 141 DISALLOW_COPY_AND_ASSIGN(ShellWindow);
138 }; 142 };
139 143
140 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ 144 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698