Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1339)

Side by Side Diff: chrome/browser/ui/views/cookie_info_view.h

Issue 9838092: ui/base/models: Make ComboboxModel::GetItemCount() a constant function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_rel and reland Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef CHROME_BROWSER_UI_VIEWS_COOKIE_INFO_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_COOKIE_INFO_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_COOKIE_INFO_VIEW_H_ 6 #define CHROME_BROWSER_UI_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>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 virtual void ViewHierarchyChanged(bool is_add, 67 virtual void ViewHierarchyChanged(bool is_add,
68 views::View* parent, 68 views::View* parent,
69 views::View* child) OVERRIDE; 69 views::View* child) OVERRIDE;
70 70
71 // views::ComboboxListener: 71 // views::ComboboxListener:
72 virtual void ItemChanged(views::Combobox* combo_box, 72 virtual void ItemChanged(views::Combobox* combo_box,
73 int prev_index, 73 int prev_index,
74 int new_index) OVERRIDE; 74 int new_index) OVERRIDE;
75 75
76 // ui::ComboboxModel: 76 // ui::ComboboxModel:
77 virtual int GetItemCount() OVERRIDE; 77 virtual int GetItemCount() const OVERRIDE;
78 virtual string16 GetItemAt(int index) OVERRIDE; 78 virtual string16 GetItemAt(int index) OVERRIDE;
79 79
80 private: 80 private:
81 // Layout helper routines. 81 // Layout helper routines.
82 void AddLabelRow(int layout_id, views::GridLayout* layout, 82 void AddLabelRow(int layout_id, views::GridLayout* layout,
83 views::View* label, views::View* value); 83 views::View* label, views::View* value);
84 void AddControlRow(int layout_id, views::GridLayout* layout, 84 void AddControlRow(int layout_id, views::GridLayout* layout,
85 views::View* label, views::View* control); 85 views::View* label, views::View* control);
86 86
87 // Sets up the view layout. 87 // Sets up the view layout.
(...skipping 26 matching lines...) Expand all
114 // CookiesPromptView (alert before cookie is set), in all other cases we 114 // CookiesPromptView (alert before cookie is set), in all other cases we
115 // don't let user directly change cookie setting. 115 // don't let user directly change cookie setting.
116 bool editable_expiration_date_; 116 bool editable_expiration_date_;
117 117
118 CookieInfoViewDelegate* delegate_; 118 CookieInfoViewDelegate* delegate_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(CookieInfoView); 120 DISALLOW_COPY_AND_ASSIGN(CookieInfoView);
121 }; 121 };
122 122
123 #endif // CHROME_BROWSER_UI_VIEWS_COOKIE_INFO_VIEW_H_ 123 #endif // CHROME_BROWSER_UI_VIEWS_COOKIE_INFO_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/options/wifi_config_view.cc ('k') | chrome/browser/ui/views/cookie_info_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698