OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_VIEW_H_ |
7 | 7 |
8 #include "extensions/browser/api/device_permissions_prompt.h" | 8 #include "extensions/browser/api/device_permissions_prompt.h" |
9 #include "ui/views/window/dialog_delegate.h" | 9 #include "ui/views/window/dialog_delegate.h" |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 base::string16 GetWindowTitle() const override; | 28 base::string16 GetWindowTitle() const override; |
29 void DeleteDelegate() override; | 29 void DeleteDelegate() override; |
30 bool Accept() override; | 30 bool Accept() override; |
31 gfx::Size GetPreferredSize() const override; | 31 gfx::Size GetPreferredSize() const override; |
32 | 32 |
33 private: | 33 private: |
34 scoped_refptr<extensions::DevicePermissionsPrompt::Prompt> prompt_; | 34 scoped_refptr<extensions::DevicePermissionsPrompt::Prompt> prompt_; |
35 | 35 |
36 // Displays the list of devices. | 36 // Displays the list of devices. |
37 views::TableView* table_view_; | 37 views::TableView* table_view_; |
38 scoped_ptr<DevicePermissionsTableModel> table_model_; | 38 std::unique_ptr<DevicePermissionsTableModel> table_model_; |
39 }; | 39 }; |
40 | 40 |
41 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_VIEW_H_ | 41 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_VIEW_H_ |
OLD | NEW |