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

Side by Side Diff: chrome/browser/browser_main_win.cc

Issue 159046: Implementing accelerators for Linux toolkit_views (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/first_run_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/browser_main_win.h" 5 #include "chrome/browser/browser_main_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
11 #include "app/message_box_flags.h" 11 #include "app/message_box_flags.h"
12 #include "app/win_util.h" 12 #include "app/win_util.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/path_service.h" 14 #include "base/path_service.h"
15 #include "base/win_util.h" 15 #include "base/win_util.h"
16 #include "chrome/browser/first_run.h" 16 #include "chrome/browser/first_run.h"
17 #include "chrome/browser/metrics/metrics_service.h" 17 #include "chrome/browser/metrics/metrics_service.h"
18 #include "chrome/browser/views/uninstall_dialog.h" 18 #include "chrome/browser/views/uninstall_dialog.h"
19 #include "chrome/common/chrome_switches.h" 19 #include "chrome/common/chrome_switches.h"
20 #include "chrome/common/env_vars.h" 20 #include "chrome/common/env_vars.h"
21 #include "chrome/common/result_codes.h" 21 #include "chrome/common/result_codes.h"
22 #include "chrome/installer/util/helper.h" 22 #include "chrome/installer/util/helper.h"
23 #include "chrome/installer/util/install_util.h" 23 #include "chrome/installer/util/install_util.h"
24 #include "chrome/installer/util/shell_util.h" 24 #include "chrome/installer/util/shell_util.h"
25 #include "grit/chromium_strings.h" 25 #include "grit/chromium_strings.h"
26 #include "grit/generated_resources.h" 26 #include "grit/generated_resources.h"
27 #include "views/controls/message_box_view.h" 27 #include "views/controls/message_box_view.h"
28 #include "views/widget/accelerator_handler.h" 28 #include "views/focus/accelerator_handler.h"
29 #include "views/window/window.h" 29 #include "views/window/window.h"
30 30
31 // Displays a warning message if the user is running chrome on windows 2000. 31 // Displays a warning message if the user is running chrome on windows 2000.
32 // Returns true if the OS is win2000, false otherwise. 32 // Returns true if the OS is win2000, false otherwise.
33 bool CheckForWin2000() { 33 bool CheckForWin2000() {
34 if (win_util::GetWinVersion() == win_util::WINVERSION_2000) { 34 if (win_util::GetWinVersion() == win_util::WINVERSION_2000) {
35 const std::wstring text = l10n_util::GetString(IDS_UNSUPPORTED_OS_WIN2000); 35 const std::wstring text = l10n_util::GetString(IDS_UNSUPPORTED_OS_WIN2000);
36 const std::wstring caption = l10n_util::GetString(IDS_PRODUCT_NAME); 36 const std::wstring caption = l10n_util::GetString(IDS_PRODUCT_NAME);
37 win_util::MessageBox(NULL, text, caption, 37 win_util::MessageBox(NULL, text, caption,
38 MB_OK | MB_ICONWARNING | MB_TOPMOST); 38 MB_OK | MB_ICONWARNING | MB_TOPMOST);
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 } 185 }
186 186
187 // We record in UMA the conditions that can prevent breakpad from generating 187 // We record in UMA the conditions that can prevent breakpad from generating
188 // and sending crash reports. Namely that the crash reporting registration 188 // and sending crash reports. Namely that the crash reporting registration
189 // failed and that the process is being debugged. 189 // failed and that the process is being debugged.
190 void RecordBreakpadStatusUMA(MetricsService* metrics) { 190 void RecordBreakpadStatusUMA(MetricsService* metrics) {
191 DWORD len = ::GetEnvironmentVariableW(env_vars::kNoOOBreakpad, NULL, 0); 191 DWORD len = ::GetEnvironmentVariableW(env_vars::kNoOOBreakpad, NULL, 0);
192 metrics->RecordBreakpadRegistration((len == 0)); 192 metrics->RecordBreakpadRegistration((len == 0));
193 metrics->RecordBreakpadHasDebugger(TRUE == ::IsDebuggerPresent()); 193 metrics->RecordBreakpadHasDebugger(TRUE == ::IsDebuggerPresent());
194 } 194 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/first_run_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698