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

Unified Diff: chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h

Issue 648833004: Componentize app_modal_dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h
diff --git a/chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h b/chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h
deleted file mode 100644
index 6fe82f8d98109bce3ace2cc16670950da232c99e..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_
-#define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_
-
-#include "ui/gfx/native_widget_types.h"
-
-class JavaScriptAppModalDialog;
-
-class NativeAppModalDialog {
- public:
- // Returns the buttons to be shown. See ui::DialogButton for which buttons can
- // be returned.
- virtual int GetAppModalDialogButtons() const = 0;
-
- // Shows the dialog.
- virtual void ShowAppModalDialog() = 0;
-
- // Activates the dialog.
- virtual void ActivateAppModalDialog() = 0;
-
- // Closes the dialog.
- virtual void CloseAppModalDialog() = 0;
-
- // Accepts or cancels the dialog.
- virtual void AcceptAppModalDialog() = 0;
- virtual void CancelAppModalDialog() = 0;
-
- // Creates an app modal dialog for a JavaScript prompt.
- static NativeAppModalDialog* CreateNativeJavaScriptPrompt(
- JavaScriptAppModalDialog* dialog,
- gfx::NativeWindow parent_window);
-};
-
-#endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_
-
« no previous file with comments | « chrome/browser/ui/app_modal_dialogs/javascript_dialog_manager.cc ('k') | chrome/browser/ui/browser_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698