| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |