| 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 #ifndef CHROME_BROWSER_VIEWS_COOKIE_INFO_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_COOKIE_INFO_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_COOKIE_INFO_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_COOKIE_INFO_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "app/combobox_model.h" | 12 #include "app/combobox_model.h" |
| 13 #include "base/string16.h" |
| 13 #include "net/base/cookie_monster.h" | 14 #include "net/base/cookie_monster.h" |
| 14 #include "views/controls/combobox/combobox.h" | 15 #include "views/controls/combobox/combobox.h" |
| 15 #include "views/view.h" | 16 #include "views/view.h" |
| 16 | 17 |
| 17 namespace views { | 18 namespace views { |
| 18 class GridLayout; | 19 class GridLayout; |
| 19 class Label; | 20 class Label; |
| 20 class NativeButton; | 21 class NativeButton; |
| 21 class Textfield; | 22 class Textfield; |
| 22 } | 23 } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 views::View* parent, | 67 views::View* parent, |
| 67 views::View* child); | 68 views::View* child); |
| 68 | 69 |
| 69 // views::Combobox::Listener override. | 70 // views::Combobox::Listener override. |
| 70 virtual void ItemChanged(views::Combobox* combo_box, | 71 virtual void ItemChanged(views::Combobox* combo_box, |
| 71 int prev_index, | 72 int prev_index, |
| 72 int new_index); | 73 int new_index); |
| 73 | 74 |
| 74 // ComboboxModel overrides for expires_value_combobox_. | 75 // ComboboxModel overrides for expires_value_combobox_. |
| 75 virtual int GetItemCount(); | 76 virtual int GetItemCount(); |
| 76 virtual std::wstring GetItemAt(int index); | 77 virtual string16 GetItemAt(int index); |
| 77 | 78 |
| 78 private: | 79 private: |
| 79 // Layout helper routines. | 80 // Layout helper routines. |
| 80 void AddLabelRow(int layout_id, views::GridLayout* layout, | 81 void AddLabelRow(int layout_id, views::GridLayout* layout, |
| 81 views::View* label, views::View* value); | 82 views::View* label, views::View* value); |
| 82 void AddControlRow(int layout_id, views::GridLayout* layout, | 83 void AddControlRow(int layout_id, views::GridLayout* layout, |
| 83 views::View* label, views::View* control); | 84 views::View* label, views::View* control); |
| 84 | 85 |
| 85 // Sets up the view layout. | 86 // Sets up the view layout. |
| 86 void Init(); | 87 void Init(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 113 // don't let user directly change cookie setting. | 114 // don't let user directly change cookie setting. |
| 114 bool editable_expiration_date_; | 115 bool editable_expiration_date_; |
| 115 | 116 |
| 116 CookieInfoViewDelegate* delegate_; | 117 CookieInfoViewDelegate* delegate_; |
| 117 | 118 |
| 118 DISALLOW_COPY_AND_ASSIGN(CookieInfoView); | 119 DISALLOW_COPY_AND_ASSIGN(CookieInfoView); |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 #endif // CHROME_BROWSER_VIEWS_COOKIE_INFO_VIEW_H_ | 122 #endif // CHROME_BROWSER_VIEWS_COOKIE_INFO_VIEW_H_ |
| 122 | 123 |
| OLD | NEW |