OLD | NEW |
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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(); | 207 static void DisableExternalOpenForTesting(); |
| 208 static void EnableExternalOpenForTesting(); |
208 | 209 |
209 protected: | 210 protected: |
210 virtual ~ShellWindow(); | 211 virtual ~ShellWindow(); |
211 | 212 |
212 private: | 213 private: |
213 // PlatformAppBrowserTest needs access to web_contents() | 214 // PlatformAppBrowserTest needs access to web_contents() |
214 friend class extensions::PlatformAppBrowserTest; | 215 friend class extensions::PlatformAppBrowserTest; |
215 | 216 |
216 // content::WebContentsDelegate implementation. | 217 // content::WebContentsDelegate implementation. |
217 virtual void CloseContents(content::WebContents* contents) OVERRIDE; | 218 virtual void CloseContents(content::WebContents* contents) OVERRIDE; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 320 |
320 // Fullscreen entered by app.window api. | 321 // Fullscreen entered by app.window api. |
321 bool fullscreen_for_window_api_; | 322 bool fullscreen_for_window_api_; |
322 // Fullscreen entered by HTML requestFullscreen. | 323 // Fullscreen entered by HTML requestFullscreen. |
323 bool fullscreen_for_tab_; | 324 bool fullscreen_for_tab_; |
324 | 325 |
325 DISALLOW_COPY_AND_ASSIGN(ShellWindow); | 326 DISALLOW_COPY_AND_ASSIGN(ShellWindow); |
326 }; | 327 }; |
327 | 328 |
328 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ | 329 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ |
OLD | NEW |