| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_NATIVE_WIDGET_WIN_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
| 6 #define VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <atlbase.h> | 9 #include <atlbase.h> |
| 10 #include <atlapp.h> | 10 #include <atlapp.h> |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 // Information saved before going into fullscreen mode, used to restore the | 272 // Information saved before going into fullscreen mode, used to restore the |
| 273 // window afterwards. | 273 // window afterwards. |
| 274 struct SavedWindowInfo { | 274 struct SavedWindowInfo { |
| 275 bool maximized; | 275 bool maximized; |
| 276 LONG style; | 276 LONG style; |
| 277 LONG ex_style; | 277 LONG ex_style; |
| 278 RECT window_rect; | 278 RECT window_rect; |
| 279 }; | 279 }; |
| 280 | 280 |
| 281 // Overridden from MessageLoop::Observer: | 281 // Overridden from MessageLoop::Observer: |
| 282 void WillProcessMessage(const MSG& msg) OVERRIDE; | 282 virtual base::EventStatus WillProcessEvent( |
| 283 virtual void DidProcessMessage(const MSG& msg) OVERRIDE; | 283 const base::NativeEvent& event) OVERRIDE; |
| 284 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE; |
| 284 | 285 |
| 285 // Overridden from WindowImpl: | 286 // Overridden from WindowImpl: |
| 286 virtual HICON GetDefaultWindowIcon() const OVERRIDE; | 287 virtual HICON GetDefaultWindowIcon() const OVERRIDE; |
| 287 virtual LRESULT OnWndProc(UINT message, | 288 virtual LRESULT OnWndProc(UINT message, |
| 288 WPARAM w_param, | 289 WPARAM w_param, |
| 289 LPARAM l_param) OVERRIDE; | 290 LPARAM l_param) OVERRIDE; |
| 290 | 291 |
| 291 // Message Handlers ---------------------------------------------------------- | 292 // Message Handlers ---------------------------------------------------------- |
| 292 | 293 |
| 293 BEGIN_MSG_MAP_EX(NativeWidgetWin) | 294 BEGIN_MSG_MAP_EX(NativeWidgetWin) |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 // rather than asking the Widget for the non_client_view so that we know at | 664 // rather than asking the Widget for the non_client_view so that we know at |
| 664 // Init time, before the Widget has created the NonClientView. | 665 // Init time, before the Widget has created the NonClientView. |
| 665 bool has_non_client_view_; | 666 bool has_non_client_view_; |
| 666 | 667 |
| 667 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); | 668 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); |
| 668 }; | 669 }; |
| 669 | 670 |
| 670 } // namespace views | 671 } // namespace views |
| 671 | 672 |
| 672 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 673 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
| OLD | NEW |