OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_VIEWS_INDEXED_DB_INFO_VIEW_H_ | |
6 #define CHROME_BROWSER_UI_VIEWS_INDEXED_DB_INFO_VIEW_H_ | |
7 | |
8 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h" | |
9 #include "ui/views/view.h" | |
10 | |
11 namespace views { | |
12 class Textfield; | |
13 } | |
14 | |
15 /////////////////////////////////////////////////////////////////////////////// | |
16 // IndexedDBInfoView | |
17 // | |
18 // Responsible for displaying a tabular grid of IndexedDB information. | |
19 class IndexedDBInfoView : public views::View { | |
20 public: | |
21 IndexedDBInfoView(); | |
22 virtual ~IndexedDBInfoView(); | |
23 | |
24 // Update the display from the specified Local Storage info. | |
25 void SetIndexedDBInfo( | |
26 const BrowsingDataIndexedDBHelper::IndexedDBInfo& | |
27 indexed_db_info); | |
28 | |
29 // Clears the cookie display to indicate that no or multiple local storages | |
30 // are selected. | |
31 void ClearIndexedDBDisplay(); | |
32 | |
33 // Enables or disables the local storate property text fields. | |
34 void EnableIndexedDBDisplay(bool enabled); | |
35 | |
36 protected: | |
37 // views::View overrides: | |
38 virtual void ViewHierarchyChanged( | |
39 bool is_add, views::View* parent, views::View* child); | |
40 | |
41 private: | |
42 // Set up the view layout | |
43 void Init(); | |
44 | |
45 // Individual property labels | |
46 views::Textfield* origin_value_field_; | |
47 views::Textfield* size_value_field_; | |
48 views::Textfield* last_modified_value_field_; | |
49 | |
50 DISALLOW_COPY_AND_ASSIGN(IndexedDBInfoView); | |
51 }; | |
52 | |
53 #endif // CHROME_BROWSER_UI_VIEWS_INDEXED_DB_INFO_VIEW_H_ | |
OLD | NEW |