| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/browser/views/cookie_info_view.h" | 5 #include "chrome/browser/views/cookie_info_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "app/gfx/canvas.h" | 9 #include "app/gfx/canvas.h" |
| 10 #include "app/gfx/color_utils.h" | 10 #include "app/gfx/color_utils.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 if (editable_expiration_date_) { | 71 if (editable_expiration_date_) { |
| 72 expire_combo_values_.clear(); | 72 expire_combo_values_.clear(); |
| 73 if (cookie.DoesExpire()) | 73 if (cookie.DoesExpire()) |
| 74 expire_combo_values_.push_back(expire_text); | 74 expire_combo_values_.push_back(expire_text); |
| 75 expire_combo_values_.push_back( | 75 expire_combo_values_.push_back( |
| 76 l10n_util::GetString(IDS_COOKIES_COOKIE_EXPIRES_SESSION)); | 76 l10n_util::GetString(IDS_COOKIES_COOKIE_EXPIRES_SESSION)); |
| 77 expires_value_combobox_->ModelChanged(); | 77 expires_value_combobox_->ModelChanged(); |
| 78 expires_value_combobox_->SetSelectedItem(0); | 78 expires_value_combobox_->SetSelectedItem(0); |
| 79 expires_value_combobox_->SetEnabled(true); | 79 expires_value_combobox_->SetEnabled(true); |
| 80 expires_value_combobox_->set_listener(this); |
| 80 } else { | 81 } else { |
| 81 expires_value_field_->SetText(expire_text); | 82 expires_value_field_->SetText(expire_text); |
| 82 } | 83 } |
| 83 | 84 |
| 84 send_for_value_field_->SetText(cookie.IsSecure() ? | 85 send_for_value_field_->SetText(cookie.IsSecure() ? |
| 85 l10n_util::GetString(IDS_COOKIES_COOKIE_SENDFOR_SECURE) : | 86 l10n_util::GetString(IDS_COOKIES_COOKIE_SENDFOR_SECURE) : |
| 86 l10n_util::GetString(IDS_COOKIES_COOKIE_SENDFOR_ANY)); | 87 l10n_util::GetString(IDS_COOKIES_COOKIE_SENDFOR_ANY)); |
| 87 EnableCookieDisplay(true); | 88 EnableCookieDisplay(true); |
| 88 Layout(); | 89 Layout(); |
| 89 } | 90 } |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 created_value_field_->SetReadOnly(true); | 267 created_value_field_->SetReadOnly(true); |
| 267 created_value_field_->RemoveBorder(); | 268 created_value_field_->RemoveBorder(); |
| 268 created_value_field_->SetBackgroundColor(text_area_background); | 269 created_value_field_->SetBackgroundColor(text_area_background); |
| 269 if (expires_value_field_) { | 270 if (expires_value_field_) { |
| 270 expires_value_field_->SetReadOnly(true); | 271 expires_value_field_->SetReadOnly(true); |
| 271 expires_value_field_->RemoveBorder(); | 272 expires_value_field_->RemoveBorder(); |
| 272 expires_value_field_->SetBackgroundColor(text_area_background); | 273 expires_value_field_->SetBackgroundColor(text_area_background); |
| 273 } | 274 } |
| 274 } | 275 } |
| 275 | 276 |
| OLD | NEW |