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 <windows.h> | 5 #include <windows.h> |
6 #include <shlobj.h> | 6 #include <shlobj.h> |
7 #include <vsstyle.h> | 7 #include <vsstyle.h> |
8 #include <vssym32.h> | 8 #include <vssym32.h> |
9 | 9 |
10 #include "chrome/browser/views/options/content_page_view.h" | 10 #include "chrome/browser/views/options/content_page_view.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 void FileDisplayArea::SetFile(const std::wstring& file_path) { | 96 void FileDisplayArea::SetFile(const std::wstring& file_path) { |
97 text_field_->SetText(file_path); | 97 text_field_->SetText(file_path); |
98 } | 98 } |
99 | 99 |
100 void FileDisplayArea::Paint(ChromeCanvas* canvas) { | 100 void FileDisplayArea::Paint(ChromeCanvas* canvas) { |
101 HDC dc = canvas->beginPlatformPaint(); | 101 HDC dc = canvas->beginPlatformPaint(); |
102 RECT rect = { 0, 0, width(), height() }; | 102 RECT rect = { 0, 0, width(), height() }; |
103 gfx::NativeTheme::instance()->PaintTextField( | 103 gfx::NativeTheme::instance()->PaintTextField( |
104 dc, EP_EDITTEXT, ETS_READONLY, 0, &rect, | 104 dc, EP_EDITTEXT, ETS_READONLY, 0, &rect, |
105 gfx::SkColorToCOLORREF(text_field_background_color_), true, true); | 105 skia::SkColorToCOLORREF(text_field_background_color_), true, true); |
106 canvas->endPlatformPaint(); | 106 canvas->endPlatformPaint(); |
107 canvas->DrawBitmapInt(default_folder_icon_, icon_bounds_.x(), | 107 canvas->DrawBitmapInt(default_folder_icon_, icon_bounds_.x(), |
108 icon_bounds_.y()); | 108 icon_bounds_.y()); |
109 } | 109 } |
110 | 110 |
111 void FileDisplayArea::Layout() { | 111 void FileDisplayArea::Layout() { |
112 icon_bounds_.SetRect(kFileIconHorizontalSpacing, kFileIconVerticalSpacing, | 112 icon_bounds_.SetRect(kFileIconHorizontalSpacing, kFileIconVerticalSpacing, |
113 kFileIconSize, kFileIconSize); | 113 kFileIconSize, kFileIconSize); |
114 gfx::Size ps = text_field_->GetPreferredSize(); | 114 gfx::Size ps = text_field_->GetPreferredSize(); |
115 text_field_->SetBounds(icon_bounds_.right() + kFileIconTextFieldSpacing, | 115 text_field_->SetBounds(icon_bounds_.right() + kFileIconTextFieldSpacing, |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 contents, | 480 contents, |
481 l10n_util::GetString(IDS_OPTIONS_FONTSANDLANGUAGES_GROUP_NAME), | 481 l10n_util::GetString(IDS_OPTIONS_FONTSANDLANGUAGES_GROUP_NAME), |
482 L"", true); | 482 L"", true); |
483 } | 483 } |
484 | 484 |
485 void ContentPageView::UpdateDownloadDirectoryDisplay() { | 485 void ContentPageView::UpdateDownloadDirectoryDisplay() { |
486 download_default_download_location_display_->SetFile( | 486 download_default_download_location_display_->SetFile( |
487 default_download_location_.GetValue()); | 487 default_download_location_.GetValue()); |
488 } | 488 } |
489 | 489 |
OLD | NEW |