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

Side by Side Diff: extensions/shell/browser/shell_desktop_controller_mac.mm

Issue 1133713009: Subject .mm files to the header sorting presubmit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase - of course... it would be one of my patches I conflict with :| Created 5 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
« no previous file with comments | « extensions/shell/app/paths_mac.mm ('k') | ios/chrome/browser/infobars/infobar_container_ios.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "extensions/shell/browser/shell_desktop_controller_mac.h" 5 #include "extensions/shell/browser/shell_desktop_controller_mac.h"
6 6
7 #include "extensions/browser/app_window/native_app_window.h" 7 #include "extensions/browser/app_window/native_app_window.h"
8 #include "extensions/shell/browser/shell_app_delegate.h"
8 #include "extensions/shell/browser/shell_app_window_client.h" 9 #include "extensions/shell/browser/shell_app_window_client.h"
9 #include "extensions/shell/browser/shell_app_delegate.h"
10 #include "ui/gfx/display.h" 10 #include "ui/gfx/display.h"
11 #include "ui/gfx/geometry/size.h" 11 #include "ui/gfx/geometry/size.h"
12 #include "ui/gfx/screen.h" 12 #include "ui/gfx/screen.h"
13 13
14 namespace extensions { 14 namespace extensions {
15 15
16 ShellDesktopControllerMac::ShellDesktopControllerMac() 16 ShellDesktopControllerMac::ShellDesktopControllerMac()
17 : app_window_client_(new ShellAppWindowClient), app_window_(NULL) { 17 : app_window_client_(new ShellAppWindowClient), app_window_(NULL) {
18 AppWindowClient::Set(app_window_client_.get()); 18 AppWindowClient::Set(app_window_client_.get());
19 } 19 }
(...skipping 24 matching lines...) Expand all
44 44
45 void ShellDesktopControllerMac::CloseAppWindows() { 45 void ShellDesktopControllerMac::CloseAppWindows() {
46 if (app_window_) { 46 if (app_window_) {
47 ui::BaseWindow* window = app_window_->GetBaseWindow(); 47 ui::BaseWindow* window = app_window_->GetBaseWindow();
48 window->Close(); // Close() deletes |app_window_|. 48 window->Close(); // Close() deletes |app_window_|.
49 app_window_ = NULL; 49 app_window_ = NULL;
50 } 50 }
51 } 51 }
52 52
53 } // namespace extensions 53 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/app/paths_mac.mm ('k') | ios/chrome/browser/infobars/infobar_container_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698