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

Side by Side Diff: chrome/browser/first_run/try_chrome_dialog_view.cc

Issue 174803002: Move root_window.* to window_event_dispatcher.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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/first_run/try_chrome_dialog_view.h" 5 #include "chrome/browser/first_run/try_chrome_dialog_view.h"
6 6
7 #include <shellapi.h> 7 #include <shellapi.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 14 matching lines...) Expand all
25 #include "ui/views/controls/button/label_button.h" 25 #include "ui/views/controls/button/label_button.h"
26 #include "ui/views/controls/button/radio_button.h" 26 #include "ui/views/controls/button/radio_button.h"
27 #include "ui/views/controls/image_view.h" 27 #include "ui/views/controls/image_view.h"
28 #include "ui/views/controls/link.h" 28 #include "ui/views/controls/link.h"
29 #include "ui/views/controls/separator.h" 29 #include "ui/views/controls/separator.h"
30 #include "ui/views/layout/grid_layout.h" 30 #include "ui/views/layout/grid_layout.h"
31 #include "ui/views/layout/layout_constants.h" 31 #include "ui/views/layout/layout_constants.h"
32 #include "ui/views/widget/widget.h" 32 #include "ui/views/widget/widget.h"
33 33
34 #if defined(USE_AURA) 34 #if defined(USE_AURA)
35 #include "ui/aura/root_window.h"
36 #include "ui/aura/window.h" 35 #include "ui/aura/window.h"
36 #include "ui/aura/window_event_dispatcher.h"
37 #endif 37 #endif
38 38
39 namespace { 39 namespace {
40 40
41 const wchar_t kHelpCenterUrl[] = 41 const wchar_t kHelpCenterUrl[] =
42 L"https://www.google.com/support/chrome/bin/answer.py?answer=150752"; 42 L"https://www.google.com/support/chrome/bin/answer.py?answer=150752";
43 43
44 enum ButtonTags { 44 enum ButtonTags {
45 BT_NONE, 45 BT_NONE,
46 BT_CLOSE_BUTTON, 46 BT_CLOSE_BUTTON,
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 result_ = TRY_CHROME_AS_DEFAULT; 366 result_ = TRY_CHROME_AS_DEFAULT;
367 } 367 }
368 368
369 popup_->Close(); 369 popup_->Close();
370 base::MessageLoop::current()->Quit(); 370 base::MessageLoop::current()->Quit();
371 } 371 }
372 372
373 void TryChromeDialogView::LinkClicked(views::Link* source, int event_flags) { 373 void TryChromeDialogView::LinkClicked(views::Link* source, int event_flags) {
374 ::ShellExecuteW(NULL, L"open", kHelpCenterUrl, NULL, NULL, SW_SHOW); 374 ::ShellExecuteW(NULL, L"open", kHelpCenterUrl, NULL, NULL, SW_SHOW);
375 } 375 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tabs_apitest.cc ('k') | chrome/browser/lifetime/application_lifetime_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698