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

Side by Side Diff: chrome/browser/js_modal_dialog_win.cc

Issue 560030: Refactored out JS specific part of modal dialog stack into its own class, exp... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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
« no previous file with comments | « chrome/browser/js_modal_dialog_mac.mm ('k') | chrome/browser/jsmessage_box_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Name: svn:eol-style
+ LF
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/js_modal_dialog.h"
6
7 #include "base/logging.h"
8 #include "chrome/browser/views/jsmessage_box_dialog.h"
9 #include "chrome/browser/tab_contents/tab_contents.h"
10 #include "views/window/window.h"
11
12 int JavaScriptAppModalDialog::GetDialogButtons() {
13 return dialog_->GetDialogButtons();
14 }
15
16 void JavaScriptAppModalDialog::AcceptWindow() {
17 views::DialogClientView* client_view =
18 dialog_->window()->GetClientView()->AsDialogClientView();
19 client_view->AcceptWindow();
20 }
21
22 void JavaScriptAppModalDialog::CancelWindow() {
23 views::DialogClientView* client_view =
24 dialog_->window()->GetClientView()->AsDialogClientView();
25 client_view->CancelWindow();
26 }
27
28 NativeDialog JavaScriptAppModalDialog::CreateNativeDialog() {
29 return new JavaScriptMessageBoxDialog(this, message_text_,
30 default_prompt_text_, display_suppress_checkbox_);
31 }
32
OLDNEW
« no previous file with comments | « chrome/browser/js_modal_dialog_mac.mm ('k') | chrome/browser/jsmessage_box_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698