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

Side by Side Diff: views/window/window_gtk.cc

Issue 6904160: Implement new gray mock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed power test Created 9 years, 7 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
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 #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
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
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
OLDNEW
« views/window/non_client_view.h ('K') | « views/window/non_client_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698