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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.mm

Issue 14969012: components: Create web_modal component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-before-land Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.h" 5 #include "chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.h"
6 6
7 #include "base/mac/mac_util.h" 7 #include "base/mac/mac_util.h"
8 #include "base/strings/sys_string_conversions.h" 8 #include "base/strings/sys_string_conversions.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/cocoa/browser_window_utils.h" 10 #include "chrome/browser/ui/cocoa/browser_window_utils.h"
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 NOTIMPLEMENTED(); 707 NOTIMPLEMENTED();
708 return NULL; 708 return NULL;
709 } 709 }
710 710
711 gfx::Point NativeAppWindowCocoa::GetDialogPosition(const gfx::Size& size) { 711 gfx::Point NativeAppWindowCocoa::GetDialogPosition(const gfx::Size& size) {
712 NOTIMPLEMENTED(); 712 NOTIMPLEMENTED();
713 return gfx::Point(); 713 return gfx::Point();
714 } 714 }
715 715
716 void NativeAppWindowCocoa::AddObserver( 716 void NativeAppWindowCocoa::AddObserver(
717 WebContentsModalDialogHostObserver* observer) { 717 web_modal::WebContentsModalDialogHostObserver* observer) {
718 NOTIMPLEMENTED(); 718 NOTIMPLEMENTED();
719 } 719 }
720 720
721 void NativeAppWindowCocoa::RemoveObserver( 721 void NativeAppWindowCocoa::RemoveObserver(
722 WebContentsModalDialogHostObserver* observer) { 722 web_modal::WebContentsModalDialogHostObserver* observer) {
723 NOTIMPLEMENTED(); 723 NOTIMPLEMENTED();
724 } 724 }
725 725
726 void NativeAppWindowCocoa::WindowWillClose() { 726 void NativeAppWindowCocoa::WindowWillClose() {
727 [window_controller_ setAppWindow:NULL]; 727 [window_controller_ setAppWindow:NULL];
728 shell_window_->OnNativeWindowChanged(); 728 shell_window_->OnNativeWindowChanged();
729 shell_window_->OnNativeClose(); 729 shell_window_->OnNativeClose();
730 } 730 }
731 731
732 void NativeAppWindowCocoa::WindowDidBecomeKey() { 732 void NativeAppWindowCocoa::WindowDidBecomeKey() {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 CHECK(!window || [window isKindOfClass:[ShellNSWindow class]]); 805 CHECK(!window || [window isKindOfClass:[ShellNSWindow class]]);
806 return static_cast<ShellNSWindow*>(window); 806 return static_cast<ShellNSWindow*>(window);
807 } 807 }
808 808
809 // static 809 // static
810 NativeAppWindow* NativeAppWindow::Create( 810 NativeAppWindow* NativeAppWindow::Create(
811 ShellWindow* shell_window, 811 ShellWindow* shell_window,
812 const ShellWindow::CreateParams& params) { 812 const ShellWindow::CreateParams& params) {
813 return new NativeAppWindowCocoa(shell_window, params); 813 return new NativeAppWindowCocoa(shell_window, params);
814 } 814 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698