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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc

Issue 10538039: Renamed BrowserWindow::GetNativeHandle() to GetNativeWindow() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyrights Created 8 years, 6 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/extensions/extension_uninstall_dialog.h" 9 #include "chrome/browser/extensions/extension_uninstall_dialog.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // there is no browser window open for |profile|. 42 // there is no browser window open for |profile|.
43 gfx::NativeWindow GetParent(Profile* profile) { 43 gfx::NativeWindow GetParent(Profile* profile) {
44 #if defined(USE_ASH) 44 #if defined(USE_ASH)
45 gfx::NativeWindow app_list = ash::Shell::GetInstance()->GetAppListWindow(); 45 gfx::NativeWindow app_list = ash::Shell::GetInstance()->GetAppListWindow();
46 if (app_list) 46 if (app_list)
47 return app_list; 47 return app_list;
48 #endif 48 #endif
49 49
50 Browser* browser = browser::FindLastActiveWithProfile(profile); 50 Browser* browser = browser::FindLastActiveWithProfile(profile);
51 if (browser && browser->window()) 51 if (browser && browser->window())
52 return browser->window()->GetNativeHandle(); 52 return browser->window()->GetNativeWindow();
53 53
54 return NULL; 54 return NULL;
55 } 55 }
56 56
57 // Views implementation of the uninstall dialog. 57 // Views implementation of the uninstall dialog.
58 class ExtensionUninstallDialogViews : public ExtensionUninstallDialog { 58 class ExtensionUninstallDialogViews : public ExtensionUninstallDialog {
59 public: 59 public:
60 ExtensionUninstallDialogViews(Profile* profile, 60 ExtensionUninstallDialogViews(Profile* profile,
61 ExtensionUninstallDialog::Delegate* delegate); 61 ExtensionUninstallDialog::Delegate* delegate);
62 virtual ~ExtensionUninstallDialogViews(); 62 virtual ~ExtensionUninstallDialogViews();
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 239 }
240 } 240 }
241 241
242 } // namespace 242 } // namespace
243 243
244 // static 244 // static
245 ExtensionUninstallDialog* ExtensionUninstallDialog::Create( 245 ExtensionUninstallDialog* ExtensionUninstallDialog::Create(
246 Profile* profile, Delegate* delegate) { 246 Profile* profile, Delegate* delegate) {
247 return new ExtensionUninstallDialogViews(profile, delegate); 247 return new ExtensionUninstallDialogViews(profile, delegate);
248 } 248 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698