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

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

Issue 15720009: Open new-window links externally from within packaged apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | 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 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_keybinding_registry.h" 10 #include "chrome/browser/extensions/extension_keybinding_registry.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // on chrome.app.window API. 197 // on chrome.app.window API.
198 void Fullscreen(); 198 void Fullscreen();
199 void Maximize(); 199 void Maximize();
200 void Minimize(); 200 void Minimize();
201 void Restore(); 201 void Restore();
202 202
203 ShellWindowContents* shell_window_contents_for_test() { 203 ShellWindowContents* shell_window_contents_for_test() {
204 return shell_window_contents_.get(); 204 return shell_window_contents_.get();
205 } 205 }
206 206
207 static void DisableExternalOpenForTesting();
208
207 protected: 209 protected:
208 virtual ~ShellWindow(); 210 virtual ~ShellWindow();
209 211
210 private: 212 private:
211 // PlatformAppBrowserTest needs access to web_contents() 213 // PlatformAppBrowserTest needs access to web_contents()
212 friend class extensions::PlatformAppBrowserTest; 214 friend class extensions::PlatformAppBrowserTest;
213 215
214 // content::WebContentsDelegate implementation. 216 // content::WebContentsDelegate implementation.
215 virtual void CloseContents(content::WebContents* contents) OVERRIDE; 217 virtual void CloseContents(content::WebContents* contents) OVERRIDE;
216 virtual bool ShouldSuppressDialogs() OVERRIDE; 218 virtual bool ShouldSuppressDialogs() OVERRIDE;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 310
309 // Fullscreen entered by app.window api. 311 // Fullscreen entered by app.window api.
310 bool fullscreen_for_window_api_; 312 bool fullscreen_for_window_api_;
311 // Fullscreen entered by HTML requestFullscreen. 313 // Fullscreen entered by HTML requestFullscreen.
312 bool fullscreen_for_tab_; 314 bool fullscreen_for_tab_;
313 315
314 DISALLOW_COPY_AND_ASSIGN(ShellWindow); 316 DISALLOW_COPY_AND_ASSIGN(ShellWindow);
315 }; 317 };
316 318
317 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ 319 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698