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

Unified Diff: chrome/browser/ui/cocoa/web_contents_modal_dialog_manager_views_mac.h

Issue 1779383002: MacViews: Remove constrained window dependencies for certificate viewer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Position correctly (kind of) & block on tab only. Created 4 years, 9 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/cocoa/web_contents_modal_dialog_manager_views_mac.h
diff --git a/chrome/browser/ui/cocoa/web_contents_modal_dialog_manager_views_mac.h b/chrome/browser/ui/cocoa/web_contents_modal_dialog_manager_views_mac.h
deleted file mode 100644
index 08b4ffc80ee2f1cc8bdd65c34e074554f20d3139..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/web_contents_modal_dialog_manager_views_mac.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
tapted 2016/03/21 02:47:12 keep this file :) and the .mm
Patti Lor 2016/05/03 00:04:59 Done - sorry, I think this was an accident D:
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_COCOA_WEB_CONTENTS_MODAL_DIALOG_MANAGER_VIEWS_MAC_H_
-#define CHROME_BROWSER_UI_COCOA_WEB_CONTENTS_MODAL_DIALOG_MANAGER_VIEWS_MAC_H_
-
-#import "base/mac/scoped_nsobject.h"
-#include "base/macros.h"
-#include "components/web_modal/single_web_contents_dialog_manager.h"
-#include "ui/views/widget/widget_observer.h"
-
-@class NSWindow;
-@class WrappedConstrainedWindowSheet;
-
-// WebContents dialog manager for a toolkit-views dialog parented off a Cocoa
-// browser window. Most of the modality behavior is still performed by the Cocoa
-// based ConstrainedWindowSheetController. This class bridges the expectations
-// of a toolkit-views dialog to the Cocoa ConstrainedWindowSheetController.
-// Note that this is not a web_modal::ModalDialogHostObserver. This is because
-// tabs in a Cocoa browser can't be dragged off their window if they have a tab-
-// modal dialog open, so the ModalDialogHost is only used by the views plumbing
-// when creating the dialog.
-class SingleWebContentsDialogManagerViewsMac
- : public web_modal::SingleWebContentsDialogManager,
- public views::WidgetObserver {
- public:
- SingleWebContentsDialogManagerViewsMac(
- NSWindow* dialog,
- web_modal::SingleWebContentsDialogManagerDelegate* delegate);
-
- ~SingleWebContentsDialogManagerViewsMac() override;
-
- // SingleWebContentsDialogManager:
- void Show() override;
- void Hide() override;
- void Close() override;
- void Focus() override;
- void Pulse() override;
- void HostChanged(web_modal::WebContentsModalDialogHost* new_host) override;
- gfx::NativeWindow dialog() override;
-
- // views::WidgetObserver:
- void OnWidgetClosing(views::Widget* widget) override;
- void OnWidgetDestroying(views::Widget* widget) override;
-
- private:
- base::scoped_nsobject<WrappedConstrainedWindowSheet> sheet_;
- // Weak. Owns this.
- web_modal::SingleWebContentsDialogManagerDelegate* delegate_;
- // Weak. Owned by parent window.
- web_modal::WebContentsModalDialogHost* host_;
-
- views::Widget* widget_; // Weak. Deletes |this| when closing.
-
- DISALLOW_COPY_AND_ASSIGN(SingleWebContentsDialogManagerViewsMac);
-};
-
-#endif // CHROME_BROWSER_UI_COCOA_WEB_CONTENTS_MODAL_DIALOG_MANAGER_VIEWS_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698