| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/views/controls/tabbed_pane/native_tabbed_pane_win.h" | 5 #include "ui/views/controls/tabbed_pane/native_tabbed_pane_win.h" |
| 6 | 6 |
| 7 #include <vssym32.h> | 7 #include <vssym32.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 389 |
| 390 void NativeTabbedPaneWin::ResizeContents() { | 390 void NativeTabbedPaneWin::ResizeContents() { |
| 391 RECT content_bounds; | 391 RECT content_bounds; |
| 392 if (!GetClientRect(native_view(), &content_bounds)) | 392 if (!GetClientRect(native_view(), &content_bounds)) |
| 393 return; | 393 return; |
| 394 TabCtrl_AdjustRect(native_view(), FALSE, &content_bounds); | 394 TabCtrl_AdjustRect(native_view(), FALSE, &content_bounds); |
| 395 content_window_->SetBounds(gfx::Rect(content_bounds)); | 395 content_window_->SetBounds(gfx::Rect(content_bounds)); |
| 396 } | 396 } |
| 397 | 397 |
| 398 } // namespace views | 398 } // namespace views |
| OLD | NEW |