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

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

Issue 680133002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 12 matching lines...) Expand all
23 class CanonicalCookie; 23 class CanonicalCookie;
24 } 24 }
25 25
26 /////////////////////////////////////////////////////////////////////////////// 26 ///////////////////////////////////////////////////////////////////////////////
27 // CookieInfoView 27 // CookieInfoView
28 // 28 //
29 // Responsible for displaying a tabular grid of Cookie information. 29 // Responsible for displaying a tabular grid of Cookie information.
30 class CookieInfoView : public views::View { 30 class CookieInfoView : public views::View {
31 public: 31 public:
32 CookieInfoView(); 32 CookieInfoView();
33 virtual ~CookieInfoView(); 33 ~CookieInfoView() override;
34 34
35 // Update the display from the specified CookieNode. 35 // Update the display from the specified CookieNode.
36 void SetCookie(const std::string& domain, 36 void SetCookie(const std::string& domain,
37 const net::CanonicalCookie& cookie_node); 37 const net::CanonicalCookie& cookie_node);
38 38
39 // Update the display from the specified cookie string. 39 // Update the display from the specified cookie string.
40 void SetCookieString(const GURL& url, const std::string& cookie_line); 40 void SetCookieString(const GURL& url, const std::string& cookie_line);
41 41
42 // Clears the cookie display to indicate that no or multiple cookies are 42 // Clears the cookie display to indicate that no or multiple cookies are
43 // selected. 43 // selected.
44 void ClearCookieDisplay(); 44 void ClearCookieDisplay();
45 45
46 // Enables or disables the cookie property text fields. 46 // Enables or disables the cookie property text fields.
47 void EnableCookieDisplay(bool enabled); 47 void EnableCookieDisplay(bool enabled);
48 48
49 protected: 49 protected:
50 // views::View: 50 // views::View:
51 virtual void ViewHierarchyChanged( 51 void ViewHierarchyChanged(
52 const ViewHierarchyChangedDetails& details) override; 52 const ViewHierarchyChangedDetails& details) override;
53 53
54 private: 54 private:
55 // Layout helper routines. 55 // Layout helper routines.
56 void AddLabelRow(int layout_id, 56 void AddLabelRow(int layout_id,
57 views::GridLayout* layout, 57 views::GridLayout* layout,
58 views::Label* label, 58 views::Label* label,
59 views::Textfield* textfield); 59 views::Textfield* textfield);
60 60
61 // Sets up the view layout. 61 // Sets up the view layout.
(...skipping 12 matching lines...) Expand all
74 views::Textfield* send_for_value_field_; 74 views::Textfield* send_for_value_field_;
75 views::Label* created_label_; 75 views::Label* created_label_;
76 views::Textfield* created_value_field_; 76 views::Textfield* created_value_field_;
77 views::Label* expires_label_; 77 views::Label* expires_label_;
78 views::Textfield* expires_value_field_; 78 views::Textfield* expires_value_field_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(CookieInfoView); 80 DISALLOW_COPY_AND_ASSIGN(CookieInfoView);
81 }; 81 };
82 82
83 #endif // CHROME_BROWSER_UI_VIEWS_COOKIE_INFO_VIEW_H_ 83 #endif // CHROME_BROWSER_UI_VIEWS_COOKIE_INFO_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/content_setting_bubble_contents.cc ('k') | chrome/browser/ui/views/create_application_shortcut_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698