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

Side by Side Diff: content/shell/browser/shell_javascript_dialog_manager.h

Issue 234533002: Remove a bunch of TOOLKIT_GTK in content/ and gpu/, as well as NPAPI plugins on linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, skip changing browser_main_loop.cc because of presubmit issues, will follow up 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/browser/shell.h ('k') | content/shell/browser/shell_javascript_dialog_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_ 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_ 6 #define CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Called by the ShellJavaScriptDialog when it closes. 44 // Called by the ShellJavaScriptDialog when it closes.
45 void DialogClosed(ShellJavaScriptDialog* dialog); 45 void DialogClosed(ShellJavaScriptDialog* dialog);
46 46
47 // Used for content_browsertests. 47 // Used for content_browsertests.
48 void set_dialog_request_callback(const base::Closure& callback) { 48 void set_dialog_request_callback(const base::Closure& callback) {
49 dialog_request_callback_ = callback; 49 dialog_request_callback_ = callback;
50 } 50 }
51 51
52 private: 52 private:
53 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(TOOLKIT_GTK) 53 #if defined(OS_MACOSX) || defined(OS_WIN)
54 // The dialog being shown. No queueing. 54 // The dialog being shown. No queueing.
55 scoped_ptr<ShellJavaScriptDialog> dialog_; 55 scoped_ptr<ShellJavaScriptDialog> dialog_;
56 #else 56 #else
57 // TODO: implement ShellJavaScriptDialog for other platforms, drop this #if 57 // TODO: implement ShellJavaScriptDialog for other platforms, drop this #if
58 #endif 58 #endif
59 59
60 base::Closure dialog_request_callback_; 60 base::Closure dialog_request_callback_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialogManager); 62 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialogManager);
63 }; 63 };
64 64
65 } // namespace content 65 } // namespace content
66 66
67 #endif // CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_ 67 #endif // CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell.h ('k') | content/shell/browser/shell_javascript_dialog_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698