| 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_BOOKMARK_APP_CONFIRMATION_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_CONFIRMATION_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_CONFIRMATION_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_CONFIRMATION_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 const WebApplicationInfo& web_app_info, | 29 const WebApplicationInfo& web_app_info, |
| 30 const BrowserWindow::ShowBookmarkAppBubbleCallback& callback); | 30 const BrowserWindow::ShowBookmarkAppBubbleCallback& callback); |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 BookmarkAppConfirmationView( | 33 BookmarkAppConfirmationView( |
| 34 const WebApplicationInfo& web_app_info, | 34 const WebApplicationInfo& web_app_info, |
| 35 const BrowserWindow::ShowBookmarkAppBubbleCallback& callback); | 35 const BrowserWindow::ShowBookmarkAppBubbleCallback& callback); |
| 36 | 36 |
| 37 // Overridden from views::WidgetDelegate: | 37 // Overridden from views::WidgetDelegate: |
| 38 views::View* GetInitiallyFocusedView() override; | 38 views::View* GetInitiallyFocusedView() override; |
| 39 ui::ModalType GetModalType() const override; |
| 39 base::string16 GetWindowTitle() const override; | 40 base::string16 GetWindowTitle() const override; |
| 40 bool ShouldShowCloseButton() const override; | 41 bool ShouldShowCloseButton() const override; |
| 41 void WindowClosing() override; | 42 void WindowClosing() override; |
| 42 | 43 |
| 43 // Overriden from views::DialogDelegateView: | 44 // Overriden from views::DialogDelegateView: |
| 44 views::View* CreateExtraView() override; | 45 views::View* CreateExtraView() override; |
| 45 bool Accept() override; | 46 bool Accept() override; |
| 46 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; | 47 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; |
| 47 bool IsDialogButtonEnabled(ui::DialogButton button) const override; | 48 bool IsDialogButtonEnabled(ui::DialogButton button) const override; |
| 48 | 49 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 68 // Checkbox to launch as a window. | 69 // Checkbox to launch as a window. |
| 69 views::Checkbox* open_as_window_checkbox_; | 70 views::Checkbox* open_as_window_checkbox_; |
| 70 | 71 |
| 71 // Textfield showing the title of the app. | 72 // Textfield showing the title of the app. |
| 72 views::Textfield* title_tf_; | 73 views::Textfield* title_tf_; |
| 73 | 74 |
| 74 DISALLOW_COPY_AND_ASSIGN(BookmarkAppConfirmationView); | 75 DISALLOW_COPY_AND_ASSIGN(BookmarkAppConfirmationView); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_CONFIRMATION_VIEW_H_ | 78 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_CONFIRMATION_VIEW_H_ |
| OLD | NEW |