| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "views/window/window_gtk.h" | 5 #include "views/window/window_gtk.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/gfx/rect.h" | 8 #include "base/gfx/rect.h" |
| 9 #include "views/window/custom_frame_view.h" | 9 #include "views/window/custom_frame_view.h" |
| 10 #include "views/window/non_client_view.h" | 10 #include "views/window/non_client_view.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 if (l10n_util::AdjustStringForLocaleDirection(window_title, &localized_text)) | 122 if (l10n_util::AdjustStringForLocaleDirection(window_title, &localized_text)) |
| 123 window_title.assign(localized_text); | 123 window_title.assign(localized_text); |
| 124 | 124 |
| 125 gtk_window_set_title(GetNativeWindow(), WideToUTF8(window_title).c_str()); | 125 gtk_window_set_title(GetNativeWindow(), WideToUTF8(window_title).c_str()); |
| 126 } | 126 } |
| 127 | 127 |
| 128 void WindowGtk::UpdateWindowIcon() { | 128 void WindowGtk::UpdateWindowIcon() { |
| 129 NOTIMPLEMENTED(); | 129 NOTIMPLEMENTED(); |
| 130 } | 130 } |
| 131 | 131 |
| 132 void WindowGtk::SetIsAlwaysOnTop(bool always_on_top) { |
| 133 NOTIMPLEMENTED(); |
| 134 } |
| 135 |
| 132 NonClientFrameView* WindowGtk::CreateFrameViewForWindow() { | 136 NonClientFrameView* WindowGtk::CreateFrameViewForWindow() { |
| 133 // TODO(erg): Always use a custom frame view? Are there cases where we let | 137 // TODO(erg): Always use a custom frame view? Are there cases where we let |
| 134 // the window manager deal with the X11 equivalent of the "non-client" area? | 138 // the window manager deal with the X11 equivalent of the "non-client" area? |
| 135 return new CustomFrameView(this); | 139 return new CustomFrameView(this); |
| 136 } | 140 } |
| 137 | 141 |
| 138 void WindowGtk::UpdateFrameAfterFrameChange() { | 142 void WindowGtk::UpdateFrameAfterFrameChange() { |
| 139 NOTIMPLEMENTED(); | 143 NOTIMPLEMENTED(); |
| 140 } | 144 } |
| 141 | 145 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // notification_registrar_.Add( | 194 // notification_registrar_.Add( |
| 191 // this, | 195 // this, |
| 192 // NotificationType::ALL_APPWINDOWS_CLOSED, | 196 // NotificationType::ALL_APPWINDOWS_CLOSED, |
| 193 // NotificationService::AllSources()); | 197 // NotificationService::AllSources()); |
| 194 // } | 198 // } |
| 195 | 199 |
| 196 // ResetWindowRegion(false); | 200 // ResetWindowRegion(false); |
| 197 } | 201 } |
| 198 | 202 |
| 199 } // namespace views | 203 } // namespace views |
| OLD | NEW |