diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-10 18:13:40 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-10 18:13:40 +0000 |
commit | b5c6e3061b38fc9936063c4b95a6fdb36dcd494d (patch) | |
tree | c33e9e39fe93750f0947b046f686df44d5ca5182 /chrome/browser/views/database_info_view.h | |
parent | 042c368e489772c0ff89f25beb396a948659a268 (diff) | |
download | chromium_src-b5c6e3061b38fc9936063c4b95a6fdb36dcd494d.zip chromium_src-b5c6e3061b38fc9936063c4b95a6fdb36dcd494d.tar.gz chromium_src-b5c6e3061b38fc9936063c4b95a6fdb36dcd494d.tar.bz2 |
Add support for HTML5 databases to the cookie tree model.
BUG=34633
TEST=create local databases, open cookie tree view from prefs.
Review URL: http://codereview.chromium.org/596009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38635 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/database_info_view.h')
-rwxr-xr-x | chrome/browser/views/database_info_view.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/chrome/browser/views/database_info_view.h b/chrome/browser/views/database_info_view.h new file mode 100755 index 0000000..a3b6743 --- /dev/null +++ b/chrome/browser/views/database_info_view.h @@ -0,0 +1,57 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_VIEWS_DATABASE_INFO_VIEW_H_ +#define CHROME_BROWSER_VIEWS_DATABASE_INFO_VIEW_H_ + +#include <string> +#include <vector> + +#include "views/view.h" +#include "chrome/browser/browsing_data_database_helper.h" + +namespace views { +class Label; +class Textfield; +} + +/////////////////////////////////////////////////////////////////////////////// +// DatabaseInfoView +// +// Responsible for displaying a tabular grid of Database information. +class DatabaseInfoView : public views::View { + public: + DatabaseInfoView(); + virtual ~DatabaseInfoView(); + + // Update the display from the specified Database info. + void SetDatabaseInfo( + const BrowsingDataDatabaseHelper::DatabaseInfo& database_info); + + // Clears the cookie display to indicate that no or multiple databases are + // selected. + void ClearDatabaseDisplay(); + + // Enables or disables the database property text fields. + void EnableDatabaseDisplay(bool enabled); + + protected: + // views::View overrides: + virtual void ViewHierarchyChanged( + bool is_add, views::View* parent, views::View* child); + + private: + // Set up the view layout. + void Init(); + + // Individual property labels. + views::Textfield* description_value_field_; + views::Textfield* size_value_field_; + views::Textfield* last_modified_value_field_; + + DISALLOW_COPY_AND_ASSIGN(DatabaseInfoView); +}; + + +#endif // CHROME_BROWSER_VIEWS_DATABASE_INFO_VIEW_H_ |