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

Side by Side Diff: src/views/unix/SkOSWindow_Unix.cpp

Issue 12480002: Fixing some warnings on Linux (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include <X11/Xlib.h> 8 #include <X11/Xlib.h>
9 #include <X11/Xatom.h> 9 #include <X11/Xatom.h>
10 #include <X11/XKBlib.h> 10 #include <X11/XKBlib.h>
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 this->mapWindowAndWait(); 148 this->mapWindowAndWait();
149 fUnixWindow.fGc = XCreateGC(dsp, fUnixWindow.fWin, 0, NULL); 149 fUnixWindow.fGc = XCreateGC(dsp, fUnixWindow.fWin, 0, NULL);
150 } 150 }
151 151
152 152
153 void SkOSWindow::post_linuxevent() { 153 void SkOSWindow::post_linuxevent() {
154 // Put an event in the X queue to fire an SkEvent. 154 // Put an event in the X queue to fire an SkEvent.
155 if (NULL == fUnixWindow.fDisplay) { 155 if (NULL == fUnixWindow.fDisplay) {
156 return; 156 return;
157 } 157 }
158 long event_mask = NoEventMask;
sugoi 2013/03/06 16:14:59 unused variable
159 XClientMessageEvent event; 158 XClientMessageEvent event;
160 event.type = ClientMessage; 159 event.type = ClientMessage;
161 Atom myAtom(0); 160 Atom myAtom(0);
162 event.message_type = myAtom; 161 event.message_type = myAtom;
163 event.format = 32; 162 event.format = 32;
164 event.data.l[0] = 0; 163 event.data.l[0] = 0;
165 XSendEvent(fUnixWindow.fDisplay, fUnixWindow.fWin, false, 0, 164 XSendEvent(fUnixWindow.fDisplay, fUnixWindow.fWin, false, 0,
166 (XEvent*) &event); 165 (XEvent*) &event);
167 XFlush(fUnixWindow.fDisplay); 166 XFlush(fUnixWindow.fDisplay);
168 } 167 }
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 return false; 380 return false;
382 } 381 }
383 382
384 bool SkOSWindow::onHandleKey(SkKey key) { 383 bool SkOSWindow::onHandleKey(SkKey key) {
385 return false; 384 return false;
386 } 385 }
387 386
388 bool SkOSWindow::onHandleKeyUp(SkKey key) { 387 bool SkOSWindow::onHandleKeyUp(SkKey key) {
389 return false; 388 return false;
390 } 389 }
OLDNEW
« src/views/animated/SkScrollBarView.cpp ('K') | « src/views/animated/SkScrollBarView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698