OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
| 9 #include "content/public/browser/web_contents_observer.h" |
8 #include "extensions/browser/app_window/app_delegate.h" | 10 #include "extensions/browser/app_window/app_delegate.h" |
9 #include "content/public/browser/web_contents_observer.h" | |
10 | 11 |
11 namespace extensions { | 12 namespace extensions { |
12 | 13 |
13 // AppDelegate implementation for app_shell. Sets focus after the WebContents is | 14 // AppDelegate implementation for app_shell. Sets focus after the WebContents is |
14 // created. Ignores most operations that would create a new dialog or window. | 15 // created. Ignores most operations that would create a new dialog or window. |
15 class ShellAppDelegate : public AppDelegate { | 16 class ShellAppDelegate : public AppDelegate { |
16 public: | 17 public: |
17 ShellAppDelegate(); | 18 ShellAppDelegate(); |
18 ~ShellAppDelegate() override; | 19 ~ShellAppDelegate() override; |
19 | 20 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 void OnHide() override {} | 54 void OnHide() override {} |
54 void OnShow() override {} | 55 void OnShow() override {} |
55 | 56 |
56 private: | 57 private: |
57 DISALLOW_COPY_AND_ASSIGN(ShellAppDelegate); | 58 DISALLOW_COPY_AND_ASSIGN(ShellAppDelegate); |
58 }; | 59 }; |
59 | 60 |
60 } // namespace extensions | 61 } // namespace extensions |
61 | 62 |
62 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ | 63 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ |
OLD | NEW |