| 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 #include "chrome/views/window/window_win.h" | 5 #include "chrome/views/window/window_win.h" |
| 6 | 6 |
| 7 #include <shellapi.h> | 7 #include <shellapi.h> |
| 8 | 8 |
| 9 #include "base/win_util.h" | 9 #include "base/win_util.h" |
| 10 #include "chrome/app/chrome_dll_resource.h" | 10 #include "chrome/app/chrome_dll_resource.h" |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 window_closed_(false), | 460 window_closed_(false), |
| 461 disable_inactive_rendering_(false), | 461 disable_inactive_rendering_(false), |
| 462 is_active_(false), | 462 is_active_(false), |
| 463 lock_updates_(false), | 463 lock_updates_(false), |
| 464 saved_window_style_(0), | 464 saved_window_style_(0), |
| 465 saved_maximized_state_(0), | 465 saved_maximized_state_(0), |
| 466 ignore_window_pos_changes_(false), | 466 ignore_window_pos_changes_(false), |
| 467 ignore_pos_changes_factory_(this), | 467 ignore_pos_changes_factory_(this), |
| 468 force_hidden_count_(0), | 468 force_hidden_count_(0), |
| 469 last_monitor_(NULL) { | 469 last_monitor_(NULL) { |
| 470 is_window_ = true; |
| 470 InitClass(); | 471 InitClass(); |
| 471 DCHECK(window_delegate_); | 472 DCHECK(window_delegate_); |
| 472 window_delegate_->window_.reset(this); | 473 window_delegate_->window_.reset(this); |
| 473 // Initialize these values to 0 so that subclasses can override the default | 474 // Initialize these values to 0 so that subclasses can override the default |
| 474 // behavior before calling Init. | 475 // behavior before calling Init. |
| 475 set_window_style(0); | 476 set_window_style(0); |
| 476 set_window_ex_style(0); | 477 set_window_ex_style(0); |
| 477 } | 478 } |
| 478 | 479 |
| 479 void WindowWin::Init(HWND parent, const gfx::Rect& bounds) { | 480 void WindowWin::Init(HWND parent, const gfx::Rect& bounds) { |
| (...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1437 resize_cursors_[RC_NORMAL] = LoadCursor(NULL, IDC_ARROW); | 1438 resize_cursors_[RC_NORMAL] = LoadCursor(NULL, IDC_ARROW); |
| 1438 resize_cursors_[RC_VERTICAL] = LoadCursor(NULL, IDC_SIZENS); | 1439 resize_cursors_[RC_VERTICAL] = LoadCursor(NULL, IDC_SIZENS); |
| 1439 resize_cursors_[RC_HORIZONTAL] = LoadCursor(NULL, IDC_SIZEWE); | 1440 resize_cursors_[RC_HORIZONTAL] = LoadCursor(NULL, IDC_SIZEWE); |
| 1440 resize_cursors_[RC_NESW] = LoadCursor(NULL, IDC_SIZENESW); | 1441 resize_cursors_[RC_NESW] = LoadCursor(NULL, IDC_SIZENESW); |
| 1441 resize_cursors_[RC_NWSE] = LoadCursor(NULL, IDC_SIZENWSE); | 1442 resize_cursors_[RC_NWSE] = LoadCursor(NULL, IDC_SIZENWSE); |
| 1442 initialized = true; | 1443 initialized = true; |
| 1443 } | 1444 } |
| 1444 } | 1445 } |
| 1445 | 1446 |
| 1446 } // namespace views | 1447 } // namespace views |
| OLD | NEW |