| 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 CHROME_VIEWS_WINDOW_WINDOW_WIN_H__ | 5 #ifndef CHROME_VIEWS_WINDOW_WINDOW_WIN_H__ |
| 6 #define CHROME_VIEWS_WINDOW_WINDOW_WIN_H__ | 6 #define CHROME_VIEWS_WINDOW_WINDOW_WIN_H__ |
| 7 | 7 |
| 8 #include "chrome/common/notification_registrar.h" | 8 #include "chrome/common/notification_registrar.h" |
| 9 #include "chrome/views/widget/widget_win.h" | 9 #include "chrome/views/widget/widget_win.h" |
| 10 #include "chrome/views/window/client_view.h" | 10 #include "chrome/views/window/client_view.h" |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 virtual void OnNCRButtonDown(UINT ht_component, const CPoint& point); | 140 virtual void OnNCRButtonDown(UINT ht_component, const CPoint& point); |
| 141 virtual LRESULT OnNCUAHDrawCaption(UINT msg, WPARAM w_param, LPARAM l_param); | 141 virtual LRESULT OnNCUAHDrawCaption(UINT msg, WPARAM w_param, LPARAM l_param); |
| 142 virtual LRESULT OnNCUAHDrawFrame(UINT msg, WPARAM w_param, LPARAM l_param); | 142 virtual LRESULT OnNCUAHDrawFrame(UINT msg, WPARAM w_param, LPARAM l_param); |
| 143 virtual LRESULT OnSetCursor(HWND window, UINT hittest_code, UINT message); | 143 virtual LRESULT OnSetCursor(HWND window, UINT hittest_code, UINT message); |
| 144 virtual LRESULT OnSetIcon(UINT size_type, HICON new_icon); | 144 virtual LRESULT OnSetIcon(UINT size_type, HICON new_icon); |
| 145 virtual LRESULT OnSetText(const wchar_t* text); | 145 virtual LRESULT OnSetText(const wchar_t* text); |
| 146 virtual void OnSettingChange(UINT flags, const wchar_t* section); | 146 virtual void OnSettingChange(UINT flags, const wchar_t* section); |
| 147 virtual void OnSize(UINT size_param, const CSize& new_size); | 147 virtual void OnSize(UINT size_param, const CSize& new_size); |
| 148 virtual void OnSysCommand(UINT notification_code, CPoint click); | 148 virtual void OnSysCommand(UINT notification_code, CPoint click); |
| 149 virtual void OnWindowPosChanging(WINDOWPOS* window_pos); | 149 virtual void OnWindowPosChanging(WINDOWPOS* window_pos); |
| 150 virtual Window* AsWindow() { return this; } | 150 virtual Window* GetWindow() { return this; } |
| 151 virtual const Window* AsWindow() const { return this; } | 151 virtual const Window* GetWindow() const { return this; } |
| 152 | 152 |
| 153 // Accessor for disable_inactive_rendering_. | 153 // Accessor for disable_inactive_rendering_. |
| 154 bool disable_inactive_rendering() const { | 154 bool disable_inactive_rendering() const { |
| 155 return disable_inactive_rendering_; | 155 return disable_inactive_rendering_; |
| 156 } | 156 } |
| 157 | 157 |
| 158 private: | 158 private: |
| 159 // Information saved before going into fullscreen mode, used to restore the | 159 // Information saved before going into fullscreen mode, used to restore the |
| 160 // window afterwards. | 160 // window afterwards. |
| 161 struct SavedWindowInfo { | 161 struct SavedWindowInfo { |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 | 313 |
| 314 // Hold onto notifications. | 314 // Hold onto notifications. |
| 315 NotificationRegistrar notification_registrar_; | 315 NotificationRegistrar notification_registrar_; |
| 316 | 316 |
| 317 DISALLOW_COPY_AND_ASSIGN(WindowWin); | 317 DISALLOW_COPY_AND_ASSIGN(WindowWin); |
| 318 }; | 318 }; |
| 319 | 319 |
| 320 } // namespace views | 320 } // namespace views |
| 321 | 321 |
| 322 #endif // CHROME_VIEWS_WINDOW_WINDOW_WIN_H__ | 322 #endif // CHROME_VIEWS_WINDOW_WINDOW_WIN_H__ |
| OLD | NEW |