Chromium Code Reviews

Side by Side Diff: views/window/window_win.cc

Issue 3361003: Revert 58215 - Revert 58186 - Move the keyboard files from base/ to app/.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « views/window/dialog_client_view.cc ('k') | webkit/support/DEPS » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "views/window/window_win.h" 5 #include "views/window/window_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include "app/keyboard_code_conversion_win.h"
10 #include "app/theme_provider.h" 11 #include "app/theme_provider.h"
11 #include "app/win_util.h" 12 #include "app/win_util.h"
12 #include "base/i18n/rtl.h" 13 #include "base/i18n/rtl.h"
13 #include "base/win_util.h" 14 #include "base/win_util.h"
14 #include "gfx/canvas_skia_paint.h" 15 #include "gfx/canvas_skia_paint.h"
15 #include "gfx/font.h" 16 #include "gfx/font.h"
16 #include "gfx/icon_util.h" 17 #include "gfx/icon_util.h"
17 #include "gfx/path.h" 18 #include "gfx/path.h"
18 #include "views/accessibility/view_accessibility.h" 19 #include "views/accessibility/view_accessibility.h"
19 #include "views/widget/root_view.h" 20 #include "views/widget/root_view.h"
(...skipping 1093 matching lines...)
1113 // we've begun to move the window, we need to unlock updates so that the 1114 // we've begun to move the window, we need to unlock updates so that the
1114 // sizing/moving feedback can be continuous. 1115 // sizing/moving feedback can be continuous.
1115 UnlockUpdates(); 1116 UnlockUpdates();
1116 } 1117 }
1117 } 1118 }
1118 } 1119 }
1119 1120
1120 // Handle SC_KEYMENU, which means that the user has pressed the ALT 1121 // Handle SC_KEYMENU, which means that the user has pressed the ALT
1121 // key and released it, so we should focus the menu bar. 1122 // key and released it, so we should focus the menu bar.
1122 if ((notification_code & sc_mask) == SC_KEYMENU && click.x == 0) { 1123 if ((notification_code & sc_mask) == SC_KEYMENU && click.x == 0) {
1123 Accelerator accelerator(win_util::WinToKeyboardCode(VK_MENU), 1124 Accelerator accelerator(app::KeyboardCodeForWindowsKeyCode(VK_MENU),
1124 false, false, false); 1125 false, false, false);
1125 GetFocusManager()->ProcessAccelerator(accelerator); 1126 GetFocusManager()->ProcessAccelerator(accelerator);
1126 return; 1127 return;
1127 } 1128 }
1128 1129
1129 // First see if the delegate can handle it. 1130 // First see if the delegate can handle it.
1130 if (window_delegate_->ExecuteWindowsCommand(notification_code)) 1131 if (window_delegate_->ExecuteWindowsCommand(notification_code))
1131 return; 1132 return;
1132 1133
1133 // Use the default implementation for any other command. 1134 // Use the default implementation for any other command.
(...skipping 380 matching lines...)
1514 Window::CloseSecondaryWidget(root_view->GetWidget()); 1515 Window::CloseSecondaryWidget(root_view->GetWidget());
1515 return TRUE; 1516 return TRUE;
1516 } 1517 }
1517 } // namespace 1518 } // namespace
1518 1519
1519 void Window::CloseAllSecondaryWindows() { 1520 void Window::CloseAllSecondaryWindows() {
1520 EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, 0); 1521 EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, 0);
1521 } 1522 }
1522 1523
1523 } // namespace views 1524 } // namespace views
OLDNEW
« no previous file with comments | « views/window/dialog_client_view.cc ('k') | webkit/support/DEPS » ('j') | no next file with comments »

Powered by Google App Engine