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

Side by Side Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm

Issue 1340683002: Remove base's implicit_cast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implicitcast: numericstest Created 5 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/views/apps/chrome_native_app_window_views_mac.h" 5 #import "chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #import "base/mac/scoped_nsobject.h" 9 #import "base/mac/scoped_nsobject.h"
10 #import "base/mac/sdk_forward_declarations.h" 10 #import "base/mac/sdk_forward_declarations.h"
(...skipping 20 matching lines...) Expand all
31 31
32 @implementation StartResizeNotificationObserver 32 @implementation StartResizeNotificationObserver
33 33
34 - (id)initForNativeAppWindow:(ChromeNativeAppWindowViewsMac*)nativeAppWindow { 34 - (id)initForNativeAppWindow:(ChromeNativeAppWindowViewsMac*)nativeAppWindow {
35 if ((self = [super init])) { 35 if ((self = [super init])) {
36 nativeAppWindow_ = nativeAppWindow; 36 nativeAppWindow_ = nativeAppWindow;
37 [[NSNotificationCenter defaultCenter] 37 [[NSNotificationCenter defaultCenter]
38 addObserver:self 38 addObserver:self
39 selector:@selector(onWindowWillStartLiveResize:) 39 selector:@selector(onWindowWillStartLiveResize:)
40 name:NSWindowWillStartLiveResizeNotification 40 name:NSWindowWillStartLiveResizeNotification
41 object:implicit_cast<ui::BaseWindow*>(nativeAppWindow) 41 object:static_cast<ui::BaseWindow*>(nativeAppWindow)
42 ->GetNativeWindow()]; 42 ->GetNativeWindow()];
43 } 43 }
44 return self; 44 return self;
45 } 45 }
46 46
47 - (void)onWindowWillStartLiveResize:(NSNotification*)notification { 47 - (void)onWindowWillStartLiveResize:(NSNotification*)notification {
48 nativeAppWindow_->OnWindowWillStartLiveResize(); 48 nativeAppWindow_->OnWindowWillStartLiveResize();
49 } 49 }
50 50
51 - (void)stopObserving { 51 - (void)stopObserving {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 ChromeNativeAppWindowViews::Hide(); 183 ChromeNativeAppWindowViews::Hide();
184 } 184 }
185 185
186 void ChromeNativeAppWindowViewsMac::UnhideWithoutActivation() { 186 void ChromeNativeAppWindowViewsMac::UnhideWithoutActivation() {
187 if (is_hidden_with_app_) { 187 if (is_hidden_with_app_) {
188 apps::ExtensionAppShimHandler::UnhideWithoutActivationForWindow( 188 apps::ExtensionAppShimHandler::UnhideWithoutActivationForWindow(
189 app_window()); 189 app_window());
190 is_hidden_with_app_ = false; 190 is_hidden_with_app_ = false;
191 } 191 }
192 } 192 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698