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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
| 9 #include "base/macros.h" |
9 #include "base/path_service.h" | 10 #include "base/path_service.h" |
10 #include "content/public/browser/plugin_service.h" | 11 #include "content/public/browser/plugin_service.h" |
11 #include "content/public/common/content_paths.h" | 12 #include "content/public/common/content_paths.h" |
12 #include "content/shell/browser/shell_browser_context.h" | 13 #include "content/shell/browser/shell_browser_context.h" |
13 #include "ui/views_content_client/views_content_client.h" | 14 #include "ui/views_content_client/views_content_client.h" |
14 #include "ui/views_content_client/views_content_client_main_parts.h" | 15 #include "ui/views_content_client/views_content_client_main_parts.h" |
15 | 16 |
16 // A simple NSApplicationDelegate that provides a basic mainMenu and can | 17 // A simple NSApplicationDelegate that provides a basic mainMenu and can |
17 // activate a task when the application has finished loading. | 18 // activate a task when the application has finished loading. |
18 @interface ViewsContentClientAppController : NSObject<NSApplicationDelegate> { | 19 @interface ViewsContentClientAppController : NSObject<NSApplicationDelegate> { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 NSString* quitTitle = [@"Quit " stringByAppendingString:appName]; | 115 NSString* quitTitle = [@"Quit " stringByAppendingString:appName]; |
115 [appMenu addItemWithTitle:quitTitle | 116 [appMenu addItemWithTitle:quitTitle |
116 action:@selector(terminate:) | 117 action:@selector(terminate:) |
117 keyEquivalent:@"q"]; | 118 keyEquivalent:@"q"]; |
118 [appMenuItem setSubmenu:appMenu]; | 119 [appMenuItem setSubmenu:appMenu]; |
119 | 120 |
120 task_.Run(); | 121 task_.Run(); |
121 } | 122 } |
122 | 123 |
123 @end | 124 @end |
OLD | NEW |