| OLD | NEW |
| 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 #include "views/window/window_gtk.h" | 5 #include "views/window/window_gtk.h" |
| 6 | 6 |
| 7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "ui/gfx/gtk_util.h" | 9 #include "ui/gfx/gtk_util.h" |
| 10 #include "ui/gfx/path.h" | 10 #include "ui/gfx/path.h" |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 } | 404 } |
| 405 | 405 |
| 406 bool WindowGtk::ShouldUseNativeFrame() const { | 406 bool WindowGtk::ShouldUseNativeFrame() const { |
| 407 return false; | 407 return false; |
| 408 } | 408 } |
| 409 | 409 |
| 410 void WindowGtk::FrameTypeChanged() { | 410 void WindowGtk::FrameTypeChanged() { |
| 411 // This is called when the Theme has changed, so forward the event to the root | 411 // This is called when the Theme has changed, so forward the event to the root |
| 412 // widget. | 412 // widget. |
| 413 ThemeChanged(); | 413 ThemeChanged(); |
| 414 GetRootView()->SchedulePaint(); |
| 414 } | 415 } |
| 415 | 416 |
| 416 //////////////////////////////////////////////////////////////////////////////// | 417 //////////////////////////////////////////////////////////////////////////////// |
| 417 // WindowGtk, private: | 418 // WindowGtk, private: |
| 418 | 419 |
| 419 // static | 420 // static |
| 420 gboolean WindowGtk::CallConfigureEvent(GtkWidget* widget, | 421 gboolean WindowGtk::CallConfigureEvent(GtkWidget* widget, |
| 421 GdkEventConfigure* event, | 422 GdkEventConfigure* event, |
| 422 WindowGtk* window_gtk) { | 423 WindowGtk* window_gtk) { |
| 423 return window_gtk->OnConfigureEvent(widget, event); | 424 return window_gtk->OnConfigureEvent(widget, event); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 447 | 448 |
| 448 //////////////////////////////////////////////////////////////////////////////// | 449 //////////////////////////////////////////////////////////////////////////////// |
| 449 // NativeWindow, public: | 450 // NativeWindow, public: |
| 450 | 451 |
| 451 // static | 452 // static |
| 452 Window* NativeWindow::CreateNativeWindow() { | 453 Window* NativeWindow::CreateNativeWindow() { |
| 453 return new WindowGtk; | 454 return new WindowGtk; |
| 454 } | 455 } |
| 455 | 456 |
| 456 } // namespace views | 457 } // namespace views |
| OLD | NEW |