Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: chrome/browser/ui/views/extensions/bookmark_app_confirmation_view.h

Issue 1906433002: Views: Add to desktop dialog is now modal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/extensions/bookmark_app_confirmation_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/extensions/bookmark_app_confirmation_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698