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

Side by Side Diff: chrome/browser/ui/gtk/js_modal_dialog_gtk.h

Issue 8632022: Add OVERRIDE to chrome/browser/ui/gtk/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_UI_GTK_JS_MODAL_DIALOG_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_JS_MODAL_DIALOG_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_JS_MODAL_DIALOG_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_JS_MODAL_DIALOG_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h" 12 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h"
12 #include "ui/base/gtk/gtk_signal.h" 13 #include "ui/base/gtk/gtk_signal.h"
13 #include "ui/gfx/native_widget_types.h" 14 #include "ui/gfx/native_widget_types.h"
14 15
15 typedef struct _GtkWidget GtkWidget; 16 typedef struct _GtkWidget GtkWidget;
16 17
17 class JavaScriptAppModalDialog; 18 class JavaScriptAppModalDialog;
18 19
19 class JSModalDialogGtk : public NativeAppModalDialog { 20 class JSModalDialogGtk : public NativeAppModalDialog {
20 public: 21 public:
21 JSModalDialogGtk(JavaScriptAppModalDialog* dialog, 22 JSModalDialogGtk(JavaScriptAppModalDialog* dialog,
22 gfx::NativeWindow parent_window); 23 gfx::NativeWindow parent_window);
23 virtual ~JSModalDialogGtk(); 24 virtual ~JSModalDialogGtk();
24 25
25 // NativeAppModalDialog: 26 // NativeAppModalDialog:
26 virtual int GetAppModalDialogButtons() const; 27 virtual int GetAppModalDialogButtons() const OVERRIDE;
27 virtual void ShowAppModalDialog(); 28 virtual void ShowAppModalDialog() OVERRIDE;
28 virtual void ActivateAppModalDialog(); 29 virtual void ActivateAppModalDialog() OVERRIDE;
29 virtual void CloseAppModalDialog(); 30 virtual void CloseAppModalDialog() OVERRIDE;
30 virtual void AcceptAppModalDialog(); 31 virtual void AcceptAppModalDialog() OVERRIDE;
31 virtual void CancelAppModalDialog(); 32 virtual void CancelAppModalDialog() OVERRIDE;
32 33
33 private: 34 private:
34 CHROMEGTK_CALLBACK_1(JSModalDialogGtk, void, OnResponse, int); 35 CHROMEGTK_CALLBACK_1(JSModalDialogGtk, void, OnResponse, int);
35 36
36 scoped_ptr<JavaScriptAppModalDialog> dialog_; 37 scoped_ptr<JavaScriptAppModalDialog> dialog_;
37 GtkWidget* gtk_dialog_; 38 GtkWidget* gtk_dialog_;
38 39
39 DISALLOW_COPY_AND_ASSIGN(JSModalDialogGtk); 40 DISALLOW_COPY_AND_ASSIGN(JSModalDialogGtk);
40 }; 41 };
41 42
42 #endif // CHROME_BROWSER_UI_GTK_JS_MODAL_DIALOG_GTK_H_ 43 #endif // CHROME_BROWSER_UI_GTK_JS_MODAL_DIALOG_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.h ('k') | chrome/browser/ui/gtk/location_bar_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698