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

Side by Side Diff: chrome/browser/ui/views/panels/panel_view.cc

Issue 711873002: Fix some minor typos related to the word "accelerate" and its derivative. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
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/views/panels/panel_view.h" 5 #include "chrome/browser/ui/views/panels/panel_view.h"
6 6
7 #include <map> 7 #include <map>
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 namespace { 48 namespace {
49 49
50 #if defined(OS_WIN) 50 #if defined(OS_WIN)
51 // If the height of a stacked panel shrinks below this threshold during the 51 // If the height of a stacked panel shrinks below this threshold during the
52 // user resizing, it will be treated as minimized. 52 // user resizing, it will be treated as minimized.
53 const int kStackedPanelHeightShrinkThresholdToBecomeMinimized = 53 const int kStackedPanelHeightShrinkThresholdToBecomeMinimized =
54 panel::kTitlebarHeight + 20; 54 panel::kTitlebarHeight + 20;
55 #endif 55 #endif
56 56
57 // Supported accelerators. 57 // Supported accelerators.
58 // Note: We can't use the acclerator table defined in chrome/browser/ui/views 58 // Note: We can't use the accelerator table defined in chrome/browser/ui/views
59 // due to checkdeps violation. 59 // due to checkdeps violation.
60 struct AcceleratorMapping { 60 struct AcceleratorMapping {
61 ui::KeyboardCode keycode; 61 ui::KeyboardCode keycode;
62 int modifiers; 62 int modifiers;
63 int command_id; 63 int command_id;
64 }; 64 };
65 const AcceleratorMapping kPanelAcceleratorMap[] = { 65 const AcceleratorMapping kPanelAcceleratorMap[] = {
66 { ui::VKEY_W, ui::EF_CONTROL_DOWN, IDC_CLOSE_WINDOW }, 66 { ui::VKEY_W, ui::EF_CONTROL_DOWN, IDC_CLOSE_WINDOW },
67 { ui::VKEY_W, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, IDC_CLOSE_WINDOW }, 67 { ui::VKEY_W, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, IDC_CLOSE_WINDOW },
68 { ui::VKEY_F4, ui::EF_ALT_DOWN, IDC_CLOSE_WINDOW }, 68 { ui::VKEY_F4, ui::EF_ALT_DOWN, IDC_CLOSE_WINDOW },
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 // SWP_FRAMECHANGED flag must be called in order for the cached window data 1143 // SWP_FRAMECHANGED flag must be called in order for the cached window data
1144 // to be updated properly. 1144 // to be updated properly.
1145 // http://msdn.microsoft.com/en-us/library/windows/desktop/ms633591(v=vs.85).a spx 1145 // http://msdn.microsoft.com/en-us/library/windows/desktop/ms633591(v=vs.85).a spx
1146 if (update_frame) { 1146 if (update_frame) {
1147 ::SetWindowPos(native_window, NULL, 0, 0, 0, 0, 1147 ::SetWindowPos(native_window, NULL, 0, 0, 0, 0,
1148 SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | 1148 SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE |
1149 SWP_NOZORDER | SWP_NOACTIVATE); 1149 SWP_NOZORDER | SWP_NOACTIVATE);
1150 } 1150 }
1151 } 1151 }
1152 #endif 1152 #endif
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.cc ('k') | ui/accelerometer/accelerometer_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698