| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <gtk/gtk.h> | 5 #include <gtk/gtk.h> |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "remoting/base/string_resources.h" | 10 #include "remoting/base/string_resources.h" |
| 11 #include "remoting/host/continue_window.h" | 11 #include "remoting/host/continue_window.h" |
| 12 #include "ui/base/glib/glib_signal.h" | 12 #include "ui/base/glib/glib_signal.h" |
| 13 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
| 14 | 14 |
| 15 namespace remoting { | 15 namespace remoting { |
| 16 | 16 |
| 17 class ContinueWindowGtk : public ContinueWindow { | 17 class ContinueWindowGtk : public ContinueWindow { |
| 18 public: | 18 public: |
| 19 ContinueWindowGtk(); | 19 ContinueWindowGtk(); |
| 20 virtual ~ContinueWindowGtk(); | 20 virtual ~ContinueWindowGtk(); |
| 21 | 21 |
| 22 protected: | 22 protected: |
| 23 // ContinueWindow overrides. | 23 // ContinueWindow overrides. |
| 24 virtual void ShowUi() OVERRIDE; | 24 virtual void ShowUi() override; |
| 25 virtual void HideUi() OVERRIDE; | 25 virtual void HideUi() override; |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 void CreateWindow(); | 28 void CreateWindow(); |
| 29 | 29 |
| 30 CHROMEG_CALLBACK_1(ContinueWindowGtk, void, OnResponse, GtkDialog*, int); | 30 CHROMEG_CALLBACK_1(ContinueWindowGtk, void, OnResponse, GtkDialog*, int); |
| 31 | 31 |
| 32 GtkWidget* continue_window_; | 32 GtkWidget* continue_window_; |
| 33 | 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(ContinueWindowGtk); | 34 DISALLOW_COPY_AND_ASSIGN(ContinueWindowGtk); |
| 35 }; | 35 }; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 HideUi(); | 113 HideUi(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 // static | 116 // static |
| 117 scoped_ptr<HostWindow> HostWindow::CreateContinueWindow() { | 117 scoped_ptr<HostWindow> HostWindow::CreateContinueWindow() { |
| 118 return make_scoped_ptr(new ContinueWindowGtk()); | 118 return make_scoped_ptr(new ContinueWindowGtk()); |
| 119 } | 119 } |
| 120 | 120 |
| 121 } // namespace remoting | 121 } // namespace remoting |
| OLD | NEW |