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

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

Issue 3337006: Revert 58388 - Revert 58215 - Revert 58186 - Move the keyboard files from bas... (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. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | 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"
11 #include "app/theme_provider.h" 10 #include "app/theme_provider.h"
12 #include "app/win_util.h" 11 #include "app/win_util.h"
13 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
14 #include "base/win_util.h" 13 #include "base/win_util.h"
15 #include "gfx/canvas_skia_paint.h" 14 #include "gfx/canvas_skia_paint.h"
16 #include "gfx/font.h" 15 #include "gfx/font.h"
17 #include "gfx/icon_util.h" 16 #include "gfx/icon_util.h"
18 #include "gfx/path.h" 17 #include "gfx/path.h"
19 #include "views/accessibility/view_accessibility.h" 18 #include "views/accessibility/view_accessibility.h"
20 #include "views/widget/root_view.h" 19 #include "views/widget/root_view.h"
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 // we've begun to move the window, we need to unlock updates so that the 1113 // we've begun to move the window, we need to unlock updates so that the
1115 // sizing/moving feedback can be continuous. 1114 // sizing/moving feedback can be continuous.
1116 UnlockUpdates(); 1115 UnlockUpdates();
1117 } 1116 }
1118 } 1117 }
1119 } 1118 }
1120 1119
1121 // Handle SC_KEYMENU, which means that the user has pressed the ALT 1120 // Handle SC_KEYMENU, which means that the user has pressed the ALT
1122 // key and released it, so we should focus the menu bar. 1121 // key and released it, so we should focus the menu bar.
1123 if ((notification_code & sc_mask) == SC_KEYMENU && click.x == 0) { 1122 if ((notification_code & sc_mask) == SC_KEYMENU && click.x == 0) {
1124 Accelerator accelerator(app::KeyboardCodeForWindowsKeyCode(VK_MENU), 1123 Accelerator accelerator(win_util::WinToKeyboardCode(VK_MENU),
1125 false, false, false); 1124 false, false, false);
1126 GetFocusManager()->ProcessAccelerator(accelerator); 1125 GetFocusManager()->ProcessAccelerator(accelerator);
1127 return; 1126 return;
1128 } 1127 }
1129 1128
1130 // First see if the delegate can handle it. 1129 // First see if the delegate can handle it.
1131 if (window_delegate_->ExecuteWindowsCommand(notification_code)) 1130 if (window_delegate_->ExecuteWindowsCommand(notification_code))
1132 return; 1131 return;
1133 1132
1134 // Use the default implementation for any other command. 1133 // Use the default implementation for any other command.
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 Window::CloseSecondaryWidget(root_view->GetWidget()); 1514 Window::CloseSecondaryWidget(root_view->GetWidget());
1516 return TRUE; 1515 return TRUE;
1517 } 1516 }
1518 } // namespace 1517 } // namespace
1519 1518
1520 void Window::CloseAllSecondaryWindows() { 1519 void Window::CloseAllSecondaryWindows() {
1521 EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, 0); 1520 EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, 0);
1522 } 1521 }
1523 1522
1524 } // namespace views 1523 } // 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
This is Rietveld 408576698