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

Side by Side Diff: ui/base/win/foreground_helper.cc

Issue 23769011: Move a bunch of windows stuff from ui/base/win to ui/gfx/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar bustage. Created 7 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 | « ui/base/win/foreground_helper.h ('k') | ui/base/win/hidden_window.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) 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 "ui/base/win/foreground_helper.h" 5 #include "ui/base/win/foreground_helper.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/base/win/window_impl.h" 8 #include "ui/gfx/win/window_impl.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 // static 12 // static
13 HRESULT ForegroundHelper::SetForeground(HWND window) { 13 HRESULT ForegroundHelper::SetForeground(HWND window) {
14 DCHECK(::IsWindow(window)); 14 DCHECK(::IsWindow(window));
15 ForegroundHelper foreground_helper; 15 ForegroundHelper foreground_helper;
16 return foreground_helper.ForegroundHotKey(window); 16 return foreground_helper.ForegroundHotKey(window);
17 } 17 }
18 18
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Handle the registered Hotkey being pressed. 75 // Handle the registered Hotkey being pressed.
76 LRESULT ForegroundHelper::OnHotKey(UINT message, 76 LRESULT ForegroundHelper::OnHotKey(UINT message,
77 WPARAM wparam, 77 WPARAM wparam,
78 LPARAM lparam, 78 LPARAM lparam,
79 BOOL& handled) { 79 BOOL& handled) {
80 SetForegroundWindow(window_); 80 SetForegroundWindow(window_);
81 return 1; 81 return 1;
82 } 82 }
83 83
84 } // namespace ui 84 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/win/foreground_helper.h ('k') | ui/base/win/hidden_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698