| Index: chrome/browser/cookie_modal_dialog_views.cc
|
| ===================================================================
|
| --- chrome/browser/cookie_modal_dialog_views.cc (revision 59533)
|
| +++ chrome/browser/cookie_modal_dialog_views.cc (working copy)
|
| @@ -1,41 +0,0 @@
|
| -// Copyright (c) 2010 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.
|
| -
|
| -#include "chrome/browser/cookie_modal_dialog.h"
|
| -
|
| -#include "base/logging.h"
|
| -#include "chrome/browser/views/cookie_prompt_view.h"
|
| -#include "chrome/browser/tab_contents/tab_contents.h"
|
| -#include "views/window/window.h"
|
| -
|
| -
|
| -// TODO(zelidrag): Make this work on Linux (views).
|
| -
|
| -void CookiePromptModalDialog::AcceptWindow() {
|
| -#if defined(OS_WIN)
|
| - views::DialogClientView* client_view =
|
| - dialog_->window()->GetClientView()->AsDialogClientView();
|
| - client_view->AcceptWindow();
|
| -#endif
|
| -}
|
| -
|
| -void CookiePromptModalDialog::CancelWindow() {
|
| -#if defined(OS_WIN)
|
| - views::DialogClientView* client_view =
|
| - dialog_->window()->GetClientView()->AsDialogClientView();
|
| - client_view->CancelWindow();
|
| -#endif
|
| -}
|
| -
|
| -
|
| -NativeDialog CookiePromptModalDialog::CreateNativeDialog() {
|
| -#if defined(OS_WIN)
|
| - return new CookiePromptView(this,
|
| - tab_contents_->GetMessageBoxRootWindow(),
|
| - tab_contents_->profile());
|
| -#else
|
| - NOTIMPLEMENTED();
|
| - return NULL;
|
| -#endif
|
| -}
|
|
|