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

Side by Side Diff: chrome/views/widget/root_view_gtk.cc

Issue 113123: Fleshes out WidgetGTK and WindowGTK a bit more. This is still vary... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/views/widget/root_view.h" 5 #include "chrome/views/widget/root_view.h"
6 6
7 #include <gtk/gtk.h>
8
7 #include "app/gfx/chrome_canvas.h" 9 #include "app/gfx/chrome_canvas.h"
8 #include "base/logging.h" 10 #include "base/logging.h"
9 #include "skia/include/SkColor.h" 11 #include "skia/include/SkColor.h"
10 12
11 namespace views { 13 namespace views {
12 14
13 void RootView::UpdateCursor(const MouseEvent& e) { 15 void RootView::UpdateCursor(const MouseEvent& e) {
14 NOTIMPLEMENTED(); 16 NOTIMPLEMENTED();
15 } 17 }
16 18
17 void RootView::OnPaint(GdkEventExpose* event) { 19 void RootView::OnPaint(GdkEventExpose* event) {
18 ChromeCanvasPaint canvas(event); 20 ChromeCanvasPaint canvas(event);
19 21
20 if (!canvas.isEmpty()) { 22 if (!canvas.isEmpty()) {
21 SchedulePaint(gfx::Rect(canvas.rectangle()), false); 23 SchedulePaint(gfx::Rect(canvas.rectangle()), false);
22 if (NeedsPainting(false)) { 24 if (NeedsPainting(false)) {
23 ProcessPaint(&canvas); 25 ProcessPaint(&canvas);
24 } 26 }
25 } 27 }
26 } 28 }
27 29
28 } 30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698