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

Side by Side Diff: chrome/browser/ui/cocoa/applescript/window_applescript.mm

Issue 5582002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/ui/cocoa/applescript/window_applescript.h" 5 #import "chrome/browser/ui/cocoa/applescript/window_applescript.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #import "base/scoped_nsobject.h" 8 #import "base/scoped_nsobject.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
11 #import "chrome/browser/app_controller_mac.h" 11 #import "chrome/browser/app_controller_mac.h"
12 #import "chrome/browser/chrome_browser_application_mac.h" 12 #import "chrome/browser/chrome_browser_application_mac.h"
13 #include "chrome/browser/profile.h" 13 #include "chrome/browser/profile.h"
14 #include "chrome/browser/tab_contents/tab_contents.h" 14 #include "chrome/browser/tab_contents/tab_contents.h"
15 #include "chrome/browser/tab_contents_wrapper.h"
16 #include "chrome/browser/tabs/tab_strip_model.h" 15 #include "chrome/browser/tabs/tab_strip_model.h"
17 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
18 #include "chrome/browser/ui/browser_list.h" 17 #include "chrome/browser/ui/browser_list.h"
19 #include "chrome/browser/ui/browser_navigator.h" 18 #include "chrome/browser/ui/browser_navigator.h"
20 #include "chrome/browser/ui/browser_window.h" 19 #include "chrome/browser/ui/browser_window.h"
21 #include "chrome/browser/ui/cocoa/applescript/constants_applescript.h" 20 #include "chrome/browser/ui/cocoa/applescript/constants_applescript.h"
22 #include "chrome/browser/ui/cocoa/applescript/error_applescript.h" 21 #include "chrome/browser/ui/cocoa/applescript/error_applescript.h"
23 #import "chrome/browser/ui/cocoa/applescript/tab_applescript.h" 22 #import "chrome/browser/ui/cocoa/applescript/tab_applescript.h"
23 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
24 #include "chrome/common/url_constants.h" 24 #include "chrome/common/url_constants.h"
25 25
26 @interface WindowAppleScript(WindowAppleScriptPrivateMethods) 26 @interface WindowAppleScript(WindowAppleScriptPrivateMethods)
27 // The NSWindow that corresponds to this window. 27 // The NSWindow that corresponds to this window.
28 - (NSWindow*)nativeHandle; 28 - (NSWindow*)nativeHandle;
29 @end 29 @end
30 30
31 @implementation WindowAppleScript 31 @implementation WindowAppleScript
32 32
33 - (id)init { 33 - (id)init {
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 [[self nativeHandle] setValue:(id)value forKey:key]; 237 [[self nativeHandle] setValue:(id)value forKey:key];
238 } 238 }
239 239
240 - (void)handlesCloseScriptCommand:(NSCloseCommand*)command { 240 - (void)handlesCloseScriptCommand:(NSCloseCommand*)command {
241 // window() can be NULL during startup. 241 // window() can be NULL during startup.
242 if (browser_->window()) 242 if (browser_->window())
243 browser_->window()->Close(); 243 browser_->window()->Close();
244 } 244 }
245 245
246 @end 246 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator_browsertest.cc ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698