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

Side by Side Diff: views/controls/native_control.cc

Issue 259047: Move classes depending on Skia out of base/gfx and into app/gfx. Rename... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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/controls/menu/native_menu_gtk.cc ('k') | views/controls/slider/native_slider_gtk.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) 2009 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/controls/native_control.h" 5 #include "views/controls/native_control.h"
6 6
7 #include <atlbase.h> 7 #include <atlbase.h>
8 #include <atlapp.h> 8 #include <atlapp.h>
9 #include <atlcrack.h> 9 #include <atlcrack.h>
10 #include <atlframe.h> 10 #include <atlframe.h>
11 #include <atlmisc.h> 11 #include <atlmisc.h>
12 12
13 #include "app/gfx/native_theme_win.h"
13 #include "app/l10n_util_win.h" 14 #include "app/l10n_util_win.h"
14 #include "base/keyboard_codes.h" 15 #include "base/keyboard_codes.h"
15 #include "base/logging.h" 16 #include "base/logging.h"
16 #include "base/win_util.h" 17 #include "base/win_util.h"
17 #include "views/background.h" 18 #include "views/background.h"
18 #include "views/border.h" 19 #include "views/border.h"
19 #include "views/controls/native/native_view_host.h" 20 #include "views/controls/native/native_view_host.h"
20 #include "views/focus/focus_manager.h" 21 #include "views/focus/focus_manager.h"
21 #include "views/widget/widget.h" 22 #include "views/widget/widget.h"
22 #include "base/gfx/native_theme.h"
23 23
24 namespace views { 24 namespace views {
25 25
26 // Maps to the original WNDPROC for the controller window before we subclassed 26 // Maps to the original WNDPROC for the controller window before we subclassed
27 // it. 27 // it.
28 static const wchar_t* const kHandlerKey = 28 static const wchar_t* const kHandlerKey =
29 L"__CONTROL_ORIGINAL_MESSAGE_HANDLER__"; 29 L"__CONTROL_ORIGINAL_MESSAGE_HANDLER__";
30 30
31 // Maps to the NativeControl. 31 // Maps to the NativeControl.
32 static const wchar_t* const kNativeControlKey = L"__NATIVE_CONTROL__"; 32 static const wchar_t* const kNativeControlKey = L"__NATIVE_CONTROL__";
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 reinterpret_cast<WNDPROC>(original_handler)); 377 reinterpret_cast<WNDPROC>(original_handler));
378 RemoveProp(window, kHandlerKey); 378 RemoveProp(window, kHandlerKey);
379 RemoveProp(window, kNativeControlKey); 379 RemoveProp(window, kNativeControlKey);
380 } 380 }
381 381
382 return CallWindowProc(reinterpret_cast<WNDPROC>(original_handler), window, 382 return CallWindowProc(reinterpret_cast<WNDPROC>(original_handler), window,
383 message, w_param, l_param); 383 message, w_param, l_param);
384 } 384 }
385 385
386 } // namespace views 386 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/menu/native_menu_gtk.cc ('k') | views/controls/slider/native_slider_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698