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

Side by Side Diff: chrome/browser/cookie_modal_dialog_mac.mm

Issue 3299020: Remove vestigial cookie/web app permissions prompting UI now that the async U... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/cookie_modal_dialog.h"
6 #import "chrome/browser/cocoa/cookie_prompt_window_controller.h"
7
8 #import <Cocoa/Cocoa.h>
9
10 #include "app/l10n_util_mac.h"
11 #import "base/cocoa_protocols_mac.h"
12 #include "base/mac_util.h"
13 #include "base/scoped_nsobject.h"
14 #include "base/logging.h"
15 #include "chrome/browser/tab_contents/tab_contents.h"
16 #include "grit/generated_resources.h"
17
18 void CookiePromptModalDialog::CreateAndShowDialog() {
19 scoped_nsobject<CookiePromptWindowController> controller(
20 [[CookiePromptWindowController alloc] initWithDialog:this]);
21 [controller.get() doModalDialog:this];
22
23 // Other than JavaScriptAppModalDialog, the cross-platform part of this class
24 // does not call |CompleteDialog()|, an explicit call is required.
25 CompleteDialog();
26 Cleanup();
27 delete this;
28 }
29
30 // The functions below are used by the automation framework.
31
32 void CookiePromptModalDialog::AcceptWindow() {
33 NOTIMPLEMENTED();
34 }
35
36 void CookiePromptModalDialog::CancelWindow() {
37 NOTIMPLEMENTED();
38 }
39
40 void CookiePromptModalDialog::CloseModalDialog() {
41 dialog_ = nil;
42 }
43
44 // This is only used by the app-modal dialog machinery on windows.
45 NativeDialog CookiePromptModalDialog::CreateNativeDialog() {
46 NOTIMPLEMENTED();
47 return nil;
48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698