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

Unified Diff: components/web_modal/single_web_contents_dialog_manager.h

Issue 231173004: [WebModal] Rename NativeWebContentsModalDialogManager to SingleWebContentsDialogManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Actual rename Created 6 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 side-by-side diff with in-line comments
Download patch
Index: components/web_modal/single_web_contents_dialog_manager.h
diff --git a/components/web_modal/native_web_contents_modal_dialog_manager.h b/components/web_modal/single_web_contents_dialog_manager.h
similarity index 72%
rename from components/web_modal/native_web_contents_modal_dialog_manager.h
rename to components/web_modal/single_web_contents_dialog_manager.h
index f97bd9792b0cc84e23d779130440211d3dce1cf3..aa0464e829be0f1b90181db3fe740c67454ec1ef 100644
--- a/components/web_modal/native_web_contents_modal_dialog_manager.h
+++ b/components/web_modal/single_web_contents_dialog_manager.h
@@ -1,9 +1,9 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2012 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 COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
-#define COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
+#ifndef COMPONENTS_WEB_MODAL_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_H_
+#define COMPONENTS_WEB_MODAL_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_H_
#include "components/web_modal/native_web_contents_modal_dialog.h"
@@ -15,12 +15,12 @@ namespace web_modal {
class WebContentsModalDialogHost;
-// Interface from NativeWebContentsModalDialogManager to
+// Interface from SingleWebContentsDialogManager to
// WebContentsModalDialogManager.
-class NativeWebContentsModalDialogManagerDelegate {
+class SingleWebContentsDialogManagerDelegate {
public:
- NativeWebContentsModalDialogManagerDelegate() {}
- virtual ~NativeWebContentsModalDialogManagerDelegate() {}
+ SingleWebContentsDialogManagerDelegate() {}
+ virtual ~SingleWebContentsDialogManagerDelegate() {}
virtual content::WebContents* GetWebContents() const = 0;
@@ -29,15 +29,14 @@ class NativeWebContentsModalDialogManagerDelegate {
virtual void WillClose(NativeWebContentsModalDialog dialog) = 0;
private:
- DISALLOW_COPY_AND_ASSIGN(NativeWebContentsModalDialogManagerDelegate);
+ DISALLOW_COPY_AND_ASSIGN(SingleWebContentsDialogManagerDelegate);
};
// Provides an interface for platform-specific UI implementation for the web
// contents modal dialog.
-// TODO(gbillock): perhaps rename to "SingleWebContentsDialogManager"
-class NativeWebContentsModalDialogManager {
+class SingleWebContentsDialogManager {
public:
- virtual ~NativeWebContentsModalDialogManager() {}
+ virtual ~SingleWebContentsDialogManager() {}
// Starts management of the modal aspects of the dialog. This function should
// also register to be notified when the dialog is closing, so that it can
@@ -66,10 +65,10 @@ class NativeWebContentsModalDialogManager {
virtual void HostChanged(WebContentsModalDialogHost* new_host) = 0;
protected:
- NativeWebContentsModalDialogManager() {}
+ SingleWebContentsDialogManager() {}
private:
- DISALLOW_COPY_AND_ASSIGN(NativeWebContentsModalDialogManager);
+ DISALLOW_COPY_AND_ASSIGN(SingleWebContentsDialogManager);
};
} // namespace web_modal

Powered by Google App Engine
This is Rietveld 408576698