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

Side by Side Diff: chrome/browser/views/options/cookies_view.h

Issue 155078: Removing an unused variable from cookies_view.h (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_OPTIONS_COOKIES_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_OPTIONS_COOKIES_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_OPTIONS_COOKIES_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_OPTIONS_COOKIES_VIEW_H_
7 7
8 #include "base/task.h" 8 #include "base/task.h"
9 #include "views/controls/button/button.h" 9 #include "views/controls/button/button.h"
10 #include "views/controls/table/table_view_observer.h" 10 #include "views/controls/table/table_view_observer.h"
(...skipping 23 matching lines...) Expand all
34 public views::Textfield::Controller { 34 public views::Textfield::Controller {
35 public: 35 public:
36 // Show the Cookies Window, creating one if necessary. 36 // Show the Cookies Window, creating one if necessary.
37 static void ShowCookiesWindow(Profile* profile); 37 static void ShowCookiesWindow(Profile* profile);
38 38
39 virtual ~CookiesView(); 39 virtual ~CookiesView();
40 40
41 // Updates the display to show only the search results. 41 // Updates the display to show only the search results.
42 void UpdateSearchResults(); 42 void UpdateSearchResults();
43 43
44 // views::ButtonListener implementation: 44 // views::ButtonListener implementation.
45 virtual void ButtonPressed(views::Button* sender); 45 virtual void ButtonPressed(views::Button* sender);
46 46
47 // views::TableViewObserver implementation: 47 // views::TableViewObserver implementation.
48 virtual void OnSelectionChanged(); 48 virtual void OnSelectionChanged();
49 49
50 // Invoked when the user presses the delete key. Deletes the selected 50 // Invoked when the user presses the delete key. Deletes the selected
51 // cookies. 51 // cookies.
52 virtual void OnTableViewDelete(views::TableView* table_view); 52 virtual void OnTableViewDelete(views::TableView* table_view);
53 53
54 // views::Textfield::Controller implementation: 54 // views::Textfield::Controller implementation.
55 virtual void ContentsChanged(views::Textfield* sender, 55 virtual void ContentsChanged(views::Textfield* sender,
56 const std::wstring& new_contents); 56 const std::wstring& new_contents);
57 virtual bool HandleKeystroke(views::Textfield* sender, 57 virtual bool HandleKeystroke(views::Textfield* sender,
58 const views::Textfield::Keystroke& key); 58 const views::Textfield::Keystroke& key);
59 59
60 // views::WindowDelegate implementation: 60 // views::WindowDelegate implementation.
61 virtual int GetDialogButtons() const { 61 virtual int GetDialogButtons() const {
62 return MessageBoxFlags::DIALOGBUTTON_CANCEL; 62 return MessageBoxFlags::DIALOGBUTTON_CANCEL;
63 } 63 }
64 virtual views::View* GetInitiallyFocusedView() { 64 virtual views::View* GetInitiallyFocusedView() {
65 return search_field_; 65 return search_field_;
66 } 66 }
67 virtual bool CanResize() const { return true; } 67 virtual bool CanResize() const { return true; }
68 virtual std::wstring GetWindowTitle() const; 68 virtual std::wstring GetWindowTitle() const;
69 virtual void WindowClosing(); 69 virtual void WindowClosing();
70 virtual views::View* GetContentsView(); 70 virtual views::View* GetContentsView();
(...skipping 26 matching lines...) Expand all
97 views::Textfield* search_field_; 97 views::Textfield* search_field_;
98 views::NativeButton* clear_search_button_; 98 views::NativeButton* clear_search_button_;
99 views::Label* description_label_; 99 views::Label* description_label_;
100 CookiesTableView* cookies_table_; 100 CookiesTableView* cookies_table_;
101 CookieInfoView* info_view_; 101 CookieInfoView* info_view_;
102 views::NativeButton* remove_button_; 102 views::NativeButton* remove_button_;
103 views::NativeButton* remove_all_button_; 103 views::NativeButton* remove_all_button_;
104 104
105 // The Cookies Table model 105 // The Cookies Table model
106 scoped_ptr<CookiesTableModel> cookies_table_model_; 106 scoped_ptr<CookiesTableModel> cookies_table_model_;
107 scoped_ptr<CookiesTableModel> search_table_model_;
108 107
109 // The Profile for which Cookies are displayed 108 // The Profile for which Cookies are displayed
110 Profile* profile_; 109 Profile* profile_;
111 110
112 // A factory to construct Runnable Methods so that we can be called back to 111 // A factory to construct Runnable Methods so that we can be called back to
113 // re-evaluate the model after the search query string changes. 112 // re-evaluate the model after the search query string changes.
114 ScopedRunnableMethodFactory<CookiesView> search_update_factory_; 113 ScopedRunnableMethodFactory<CookiesView> search_update_factory_;
115 114
116 // Our containing window. If this is non-NULL there is a visible Cookies 115 // Our containing window. If this is non-NULL there is a visible Cookies
117 // window somewhere. 116 // window somewhere.
118 static views::Window* instance_; 117 static views::Window* instance_;
119 118
120 DISALLOW_COPY_AND_ASSIGN(CookiesView); 119 DISALLOW_COPY_AND_ASSIGN(CookiesView);
121 }; 120 };
122 121
123 #endif // CHROME_BROWSER_VIEWS_OPTIONS_COOKIES_VIEW_H_ 122 #endif // CHROME_BROWSER_VIEWS_OPTIONS_COOKIES_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698