| 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 24 matching lines...) Expand all Loading... |
| 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 ui::ModalType GetModalType() const override; |
| 40 base::string16 GetWindowTitle() const override; | 40 base::string16 GetWindowTitle() const override; |
| 41 bool ShouldShowCloseButton() const override; | 41 bool ShouldShowCloseButton() const override; |
| 42 void WindowClosing() override; | 42 void WindowClosing() override; |
| 43 | 43 |
| 44 // Overriden from views::DialogDelegateView: | 44 // Overriden from views::DialogDelegateView: |
| 45 views::View* CreateExtraView() override; | |
| 46 bool Accept() override; | 45 bool Accept() override; |
| 47 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; | 46 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; |
| 48 bool IsDialogButtonEnabled(ui::DialogButton button) const override; | 47 bool IsDialogButtonEnabled(ui::DialogButton button) const override; |
| 49 | 48 |
| 50 // Overridden from views::View: | 49 // Overridden from views::View: |
| 51 gfx::Size GetMinimumSize() const override; | 50 gfx::Size GetMinimumSize() const override; |
| 52 | 51 |
| 53 // Overridden from views::TextfieldController: | 52 // Overridden from views::TextfieldController: |
| 54 void ContentsChanged(views::Textfield* sender, | 53 void ContentsChanged(views::Textfield* sender, |
| 55 const base::string16& new_contents) override; | 54 const base::string16& new_contents) override; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 69 // Checkbox to launch as a window. | 68 // Checkbox to launch as a window. |
| 70 views::Checkbox* open_as_window_checkbox_; | 69 views::Checkbox* open_as_window_checkbox_; |
| 71 | 70 |
| 72 // Textfield showing the title of the app. | 71 // Textfield showing the title of the app. |
| 73 views::Textfield* title_tf_; | 72 views::Textfield* title_tf_; |
| 74 | 73 |
| 75 DISALLOW_COPY_AND_ASSIGN(BookmarkAppConfirmationView); | 74 DISALLOW_COPY_AND_ASSIGN(BookmarkAppConfirmationView); |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_CONFIRMATION_VIEW_H_ | 77 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BOOKMARK_APP_CONFIRMATION_VIEW_H_ |
| OLD | NEW |