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

Side by Side Diff: ui/views/win/hwnd_message_handler.h

Issue 14061025: ui: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/views/widget/tooltip_manager_win.cc ('k') | ui/views/win/hwnd_message_handler.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 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlapp.h> 9 #include <atlapp.h>
10 #include <atlmisc.h> 10 #include <atlmisc.h>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // from happening. 48 // from happening.
49 const int WM_NCUAHDRAWCAPTION = 0xAE; 49 const int WM_NCUAHDRAWCAPTION = 0xAE;
50 const int WM_NCUAHDRAWFRAME = 0xAF; 50 const int WM_NCUAHDRAWFRAME = 0xAF;
51 51
52 // An object that handles messages for a HWND that implements the views 52 // An object that handles messages for a HWND that implements the views
53 // "Custom Frame" look. The purpose of this class is to isolate the windows- 53 // "Custom Frame" look. The purpose of this class is to isolate the windows-
54 // specific message handling from the code that wraps it. It is intended to be 54 // specific message handling from the code that wraps it. It is intended to be
55 // used by both a views::NativeWidget and an aura::RootWindowHost 55 // used by both a views::NativeWidget and an aura::RootWindowHost
56 // implementation. 56 // implementation.
57 // TODO(beng): This object should eventually *become* the WindowImpl. 57 // TODO(beng): This object should eventually *become* the WindowImpl.
58 class VIEWS_EXPORT HWNDMessageHandler : public ui::WindowImpl, 58 class VIEWS_EXPORT HWNDMessageHandler :
59 public internal::InputMethodDelegate, 59 public ui::WindowImpl,
60 public MessageLoopForUI::Observer { 60 public internal::InputMethodDelegate,
61 public base::MessageLoopForUI::Observer {
61 public: 62 public:
62 explicit HWNDMessageHandler(HWNDMessageHandlerDelegate* delegate); 63 explicit HWNDMessageHandler(HWNDMessageHandlerDelegate* delegate);
63 ~HWNDMessageHandler(); 64 ~HWNDMessageHandler();
64 65
65 void Init(HWND parent, const gfx::Rect& bounds); 66 void Init(HWND parent, const gfx::Rect& bounds);
66 void InitModalType(ui::ModalType modal_type); 67 void InitModalType(ui::ModalType modal_type);
67 68
68 void Close(); 69 void Close();
69 void CloseNow(); 70 void CloseNow();
70 71
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 455
455 // True the first time nccalc is called on a sizable widget 456 // True the first time nccalc is called on a sizable widget
456 bool is_first_nccalc_; 457 bool is_first_nccalc_;
457 458
458 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 459 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
459 }; 460 };
460 461
461 } // namespace views 462 } // namespace views
462 463
463 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 464 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « ui/views/widget/tooltip_manager_win.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698