OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 VIEWS_WIDGET_WIDGET_WIN_H_ | 5 #ifndef VIEWS_WIDGET_WIDGET_WIN_H_ |
6 #define VIEWS_WIDGET_WIDGET_WIN_H_ | 6 #define VIEWS_WIDGET_WIDGET_WIN_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlapp.h> | 9 #include <atlapp.h> |
10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 MSG_WM_CANCELMODE(OnCancelMode) | 152 MSG_WM_CANCELMODE(OnCancelMode) |
153 MSG_WM_CAPTURECHANGED(OnCaptureChanged) | 153 MSG_WM_CAPTURECHANGED(OnCaptureChanged) |
154 MSG_WM_CLOSE(OnClose) | 154 MSG_WM_CLOSE(OnClose) |
155 MSG_WM_COMMAND(OnCommand) | 155 MSG_WM_COMMAND(OnCommand) |
156 MSG_WM_CREATE(OnCreate) | 156 MSG_WM_CREATE(OnCreate) |
157 MSG_WM_DESTROY(OnDestroy) | 157 MSG_WM_DESTROY(OnDestroy) |
158 MSG_WM_ERASEBKGND(OnEraseBkgnd) | 158 MSG_WM_ERASEBKGND(OnEraseBkgnd) |
159 MSG_WM_ENDSESSION(OnEndSession) | 159 MSG_WM_ENDSESSION(OnEndSession) |
160 MSG_WM_ENTERSIZEMOVE(OnEnterSizeMove) | 160 MSG_WM_ENTERSIZEMOVE(OnEnterSizeMove) |
161 MSG_WM_EXITMENULOOP(OnExitMenuLoop) | 161 MSG_WM_EXITMENULOOP(OnExitMenuLoop) |
| 162 MSG_WM_EXITSIZEMOVE(OnExitSizeMove) |
162 MSG_WM_GETMINMAXINFO(OnGetMinMaxInfo) | 163 MSG_WM_GETMINMAXINFO(OnGetMinMaxInfo) |
163 MSG_WM_HSCROLL(OnHScroll) | 164 MSG_WM_HSCROLL(OnHScroll) |
164 MSG_WM_INITMENU(OnInitMenu) | 165 MSG_WM_INITMENU(OnInitMenu) |
165 MSG_WM_INITMENUPOPUP(OnInitMenuPopup) | 166 MSG_WM_INITMENUPOPUP(OnInitMenuPopup) |
166 MSG_WM_KEYDOWN(OnKeyDown) | 167 MSG_WM_KEYDOWN(OnKeyDown) |
167 MSG_WM_KEYUP(OnKeyUp) | 168 MSG_WM_KEYUP(OnKeyUp) |
168 MSG_WM_SYSKEYDOWN(OnKeyDown) | 169 MSG_WM_SYSKEYDOWN(OnKeyDown) |
169 MSG_WM_SYSKEYUP(OnKeyUp) | 170 MSG_WM_SYSKEYUP(OnKeyUp) |
170 MSG_WM_LBUTTONDBLCLK(OnLButtonDblClk) | 171 MSG_WM_LBUTTONDBLCLK(OnLButtonDblClk) |
171 MSG_WM_LBUTTONDOWN(OnLButtonDown) | 172 MSG_WM_LBUTTONDOWN(OnLButtonDown) |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 virtual void CloseNow(); | 219 virtual void CloseNow(); |
219 virtual void Show(); | 220 virtual void Show(); |
220 virtual void Hide(); | 221 virtual void Hide(); |
221 virtual gfx::NativeView GetNativeView() const; | 222 virtual gfx::NativeView GetNativeView() const; |
222 virtual void PaintNow(const gfx::Rect& update_rect); | 223 virtual void PaintNow(const gfx::Rect& update_rect); |
223 virtual void SetOpacity(unsigned char opacity); | 224 virtual void SetOpacity(unsigned char opacity); |
224 virtual RootView* GetRootView(); | 225 virtual RootView* GetRootView(); |
225 virtual Widget* GetRootWidget() const; | 226 virtual Widget* GetRootWidget() const; |
226 virtual bool IsVisible() const; | 227 virtual bool IsVisible() const; |
227 virtual bool IsActive() const; | 228 virtual bool IsActive() const; |
| 229 virtual void GenerateMousePressedForView(View* view, |
| 230 const gfx::Point& point); |
228 virtual TooltipManager* GetTooltipManager(); | 231 virtual TooltipManager* GetTooltipManager(); |
229 virtual ThemeProvider* GetThemeProvider() const; | 232 virtual ThemeProvider* GetThemeProvider() const; |
230 virtual Window* GetWindow(); | 233 virtual Window* GetWindow(); |
231 virtual const Window* GetWindow() const; | 234 virtual const Window* GetWindow() const; |
232 virtual FocusManager* GetFocusManager(); | 235 virtual FocusManager* GetFocusManager(); |
233 | 236 |
234 // Overridden from MessageLoop::Observer: | 237 // Overridden from MessageLoop::Observer: |
235 void WillProcessMessage(const MSG& msg); | 238 void WillProcessMessage(const MSG& msg); |
236 virtual void DidProcessMessage(const MSG& msg); | 239 virtual void DidProcessMessage(const MSG& msg); |
237 | 240 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 // leak a few things. | 367 // leak a few things. |
365 virtual void OnDestroy(); | 368 virtual void OnDestroy(); |
366 virtual LRESULT OnDwmCompositionChanged(UINT msg, | 369 virtual LRESULT OnDwmCompositionChanged(UINT msg, |
367 WPARAM w_param, | 370 WPARAM w_param, |
368 LPARAM l_param) { | 371 LPARAM l_param) { |
369 SetMsgHandled(FALSE); | 372 SetMsgHandled(FALSE); |
370 return 0; | 373 return 0; |
371 } | 374 } |
372 virtual void OnEndSession(BOOL ending, UINT logoff) { SetMsgHandled(FALSE); } | 375 virtual void OnEndSession(BOOL ending, UINT logoff) { SetMsgHandled(FALSE); } |
373 virtual void OnEnterSizeMove() { SetMsgHandled(FALSE); } | 376 virtual void OnEnterSizeMove() { SetMsgHandled(FALSE); } |
| 377 virtual LRESULT OnEraseBkgnd(HDC dc); |
374 virtual void OnExitMenuLoop(BOOL is_track_popup_menu) { | 378 virtual void OnExitMenuLoop(BOOL is_track_popup_menu) { |
375 SetMsgHandled(FALSE); | 379 SetMsgHandled(FALSE); |
376 } | 380 } |
377 virtual LRESULT OnEraseBkgnd(HDC dc); | 381 virtual void OnExitSizeMove() { SetMsgHandled(FALSE); } |
378 virtual LRESULT OnGetObject(UINT uMsg, WPARAM w_param, LPARAM l_param); | 382 virtual LRESULT OnGetObject(UINT uMsg, WPARAM w_param, LPARAM l_param); |
379 virtual void OnGetMinMaxInfo(MINMAXINFO* minmax_info) { | 383 virtual void OnGetMinMaxInfo(MINMAXINFO* minmax_info) { |
380 SetMsgHandled(FALSE); | 384 SetMsgHandled(FALSE); |
381 } | 385 } |
382 virtual void OnHScroll(int scroll_type, short position, HWND scrollbar) { | 386 virtual void OnHScroll(int scroll_type, short position, HWND scrollbar) { |
383 SetMsgHandled(FALSE); | 387 SetMsgHandled(FALSE); |
384 } | 388 } |
385 virtual void OnInitMenu(HMENU menu) { SetMsgHandled(FALSE); } | 389 virtual void OnInitMenu(HMENU menu) { SetMsgHandled(FALSE); } |
386 virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu) { | 390 virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu) { |
387 SetMsgHandled(FALSE); | 391 SetMsgHandled(FALSE); |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 | 643 |
640 scoped_ptr<DefaultThemeProvider> default_theme_provider_; | 644 scoped_ptr<DefaultThemeProvider> default_theme_provider_; |
641 | 645 |
642 // Our hwnd. | 646 // Our hwnd. |
643 HWND hwnd_; | 647 HWND hwnd_; |
644 }; | 648 }; |
645 | 649 |
646 } // namespace views | 650 } // namespace views |
647 | 651 |
648 #endif // #ifndef VIEWS_WIDGET_WIDGET_WIN_H_ | 652 #endif // #ifndef VIEWS_WIDGET_WIDGET_WIN_H_ |
OLD | NEW |