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 #include "views/window/dialog_client_view.h" | 5 #include "views/window/dialog_client_view.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 extra); | 442 extra); |
443 | 443 |
444 // TODO(beng): (http://b/1085509) In "classic" rendering mode, there isn't | 444 // TODO(beng): (http://b/1085509) In "classic" rendering mode, there isn't |
445 // a theme-supplied gripper. We should probably improvise | 445 // a theme-supplied gripper. We should probably improvise |
446 // something, which would also require changing |gripper_size| | 446 // something, which would also require changing |gripper_size| |
447 // to have different default values, too... | 447 // to have different default values, too... |
448 size_box_bounds_ = GetContentsBounds(); | 448 size_box_bounds_ = GetContentsBounds(); |
449 size_box_bounds_.set_x(size_box_bounds_.right() - gripper_size.width()); | 449 size_box_bounds_.set_x(size_box_bounds_.right() - gripper_size.width()); |
450 size_box_bounds_.set_y(size_box_bounds_.bottom() - gripper_size.height()); | 450 size_box_bounds_.set_y(size_box_bounds_.bottom() - gripper_size.height()); |
451 | 451 |
452 gfx::NativeTheme::instance()->Paint(canvas->AsCanvasSkia(), | 452 gfx::NativeTheme::instance()->Paint(canvas->GetSkCanvas(), |
453 gfx::NativeTheme::kWindowResizeGripper, | 453 gfx::NativeTheme::kWindowResizeGripper, |
454 gfx::NativeTheme::kNormal, | 454 gfx::NativeTheme::kNormal, |
455 size_box_bounds_, | 455 size_box_bounds_, |
456 extra); | 456 extra); |
457 #else | 457 #else |
458 NOTIMPLEMENTED(); | 458 NOTIMPLEMENTED(); |
459 // TODO(port): paint size box | 459 // TODO(port): paint size box |
460 #endif | 460 #endif |
461 } | 461 } |
462 } | 462 } |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 void DialogClientView::InitClass() { | 580 void DialogClientView::InitClass() { |
581 static bool initialized = false; | 581 static bool initialized = false; |
582 if (!initialized) { | 582 if (!initialized) { |
583 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 583 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
584 dialog_button_font_ = new gfx::Font(rb.GetFont(ResourceBundle::BaseFont)); | 584 dialog_button_font_ = new gfx::Font(rb.GetFont(ResourceBundle::BaseFont)); |
585 initialized = true; | 585 initialized = true; |
586 } | 586 } |
587 } | 587 } |
588 | 588 |
589 } // namespace views | 589 } // namespace views |
OLD | NEW |