| 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_NON_CLIENT_VIEW_H_ | 5 #ifndef CHROME_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
| 6 #define CHROME_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 6 #define CHROME_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/task.h" | 8 #include "base/task.h" |
| 9 #include "chrome/views/view.h" | 9 #include "chrome/views/view.h" |
| 10 #include "chrome/views/window/client_view.h" | 10 #include "chrome/views/window/client_view.h" |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // would lead to the controls returning to this normal state naturally, e.g. | 178 // would lead to the controls returning to this normal state naturally, e.g. |
| 179 // when the window is maximized, minimized or restored. | 179 // when the window is maximized, minimized or restored. |
| 180 void ResetWindowControls(); | 180 void ResetWindowControls(); |
| 181 | 181 |
| 182 // Get/Set client_view property. | 182 // Get/Set client_view property. |
| 183 ClientView* client_view() const { return client_view_; } | 183 ClientView* client_view() const { return client_view_; } |
| 184 void set_client_view(ClientView* client_view) { | 184 void set_client_view(ClientView* client_view) { |
| 185 client_view_ = client_view; | 185 client_view_ = client_view; |
| 186 } | 186 } |
| 187 | 187 |
| 188 // Layout just the frame view. This is necessary on Windows when non-client |
| 189 // metrics such as the position of the window controls changes independently |
| 190 // of a window resize message. |
| 191 void LayoutFrameView(); |
| 192 |
| 188 // NonClientView, View overrides: | 193 // NonClientView, View overrides: |
| 189 virtual gfx::Size GetPreferredSize(); | 194 virtual gfx::Size GetPreferredSize(); |
| 190 virtual void Layout(); | 195 virtual void Layout(); |
| 191 | 196 |
| 192 protected: | 197 protected: |
| 193 // NonClientView, View overrides: | 198 // NonClientView, View overrides: |
| 194 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); | 199 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); |
| 195 virtual views::View* GetViewForPoint(const gfx::Point& point); | 200 virtual views::View* GetViewForPoint(const gfx::Point& point); |
| 196 virtual views::View* GetViewForPoint(const gfx::Point& point, | 201 virtual views::View* GetViewForPoint(const gfx::Point& point, |
| 197 bool can_create_floating); | 202 bool can_create_floating); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 212 | 217 |
| 213 // Whether or not we should use the native frame. | 218 // Whether or not we should use the native frame. |
| 214 bool use_native_frame_; | 219 bool use_native_frame_; |
| 215 | 220 |
| 216 DISALLOW_COPY_AND_ASSIGN(NonClientView); | 221 DISALLOW_COPY_AND_ASSIGN(NonClientView); |
| 217 }; | 222 }; |
| 218 | 223 |
| 219 } // namespace views | 224 } // namespace views |
| 220 | 225 |
| 221 #endif // #ifndef CHROME_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 226 #endif // #ifndef CHROME_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
| OLD | NEW |