diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-24 20:38:29 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-24 20:38:29 +0000 |
commit | 3868baed7247f13ac96e2f14f09121d43b59aab2 (patch) | |
tree | 46f15ba8f29d762b99a20c83b7011e3bb965396d /chrome/browser/views/appcache_info_view.h | |
parent | 2b8e7ca060b5c7cae81676c233039c33c5ce080f (diff) | |
download | chromium_src-3868baed7247f13ac96e2f14f09121d43b59aab2.zip chromium_src-3868baed7247f13ac96e2f14f09121d43b59aab2.tar.gz chromium_src-3868baed7247f13ac96e2f14f09121d43b59aab2.tar.bz2 |
Put up a prompt to create appcaches if the Content Settings indicate to do so. Done for windows and linux (sorry mac, you're out of luck). Also put in place a GenericInfoView class.
BUG=38362
TEST=manual and generic_info_view_unittest.cc
Review URL: http://codereview.chromium.org/1115005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42525 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/appcache_info_view.h')
-rw-r--r-- | chrome/browser/views/appcache_info_view.h | 35 |
1 files changed, 3 insertions, 32 deletions
diff --git a/chrome/browser/views/appcache_info_view.h b/chrome/browser/views/appcache_info_view.h index 25db5dd..f78162f 100644 --- a/chrome/browser/views/appcache_info_view.h +++ b/chrome/browser/views/appcache_info_view.h @@ -5,46 +5,17 @@ #ifndef CHROME_BROWSER_VIEWS_APPCACHE_INFO_VIEW_H_ #define CHROME_BROWSER_VIEWS_APPCACHE_INFO_VIEW_H_ -#include <string> -#include <vector> - -#include "views/view.h" +#include "chrome/browser/views/generic_info_view.h" #include "chrome/browser/browsing_data_appcache_helper.h" -namespace views { -class GridLayout; -class Label; -class Textfield; -} - -/////////////////////////////////////////////////////////////////////////////// // AppCacheInfoView -// -// Responsible for displaying a tabular grid of AppCache information. -class AppCacheInfoView : public views::View { +// Displays a tabular grid of AppCache information. +class AppCacheInfoView : public GenericInfoView { public: AppCacheInfoView(); - virtual ~AppCacheInfoView(); - void SetAppCacheInfo(const appcache::AppCacheInfo* info); - void ClearAppCacheDisplay(); - void EnableAppCacheDisplay(bool enabled); - - protected: - // views::View overrides: - virtual void ViewHierarchyChanged( - bool is_add, views::View* parent, views::View* child); private: - void Init(); - void AddRow(int layout_id, views::GridLayout* layout, views::Label* label, - views::Textfield* field, bool add_padding_row); - - views::Textfield* manifest_url_field_; - views::Textfield* size_field_; - views::Textfield* creation_date_field_; - views::Textfield* last_access_field_; - DISALLOW_COPY_AND_ASSIGN(AppCacheInfoView); }; |