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

Side by Side Diff: ui/base/clipboard/clipboard_gtk.cc

Issue 8523019: Devirtualize CHROMEG_CALLBACK (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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 "ui/base/clipboard/clipboard.h" 5 #include "ui/base/clipboard/clipboard.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 #include <X11/extensions/Xfixes.h> 8 #include <X11/extensions/Xfixes.h>
9 #include <X11/Xatom.h> 9 #include <X11/Xatom.h>
10 #include <map> 10 #include <map>
(...skipping 22 matching lines...) Expand all
33 33
34 uint64 clipboard_sequence_number() const { 34 uint64 clipboard_sequence_number() const {
35 return clipboard_sequence_number_; 35 return clipboard_sequence_number_;
36 } 36 }
37 uint64 primary_sequence_number() const { return primary_sequence_number_; } 37 uint64 primary_sequence_number() const { return primary_sequence_number_; }
38 38
39 private: 39 private:
40 friend struct DefaultSingletonTraits<SelectionChangeObserver>; 40 friend struct DefaultSingletonTraits<SelectionChangeObserver>;
41 41
42 SelectionChangeObserver(); 42 SelectionChangeObserver();
43 virtual ~SelectionChangeObserver(); 43 ~SelectionChangeObserver();
44 44
45 CHROMEG_CALLBACK_1(SelectionChangeObserver, GdkFilterReturn, OnXEvent, 45 CHROMEG_CALLBACK_1(SelectionChangeObserver, GdkFilterReturn, OnXEvent,
46 GdkXEvent*, GdkEvent*); 46 GdkXEvent*, GdkEvent*);
47 47
48 int event_base_; 48 int event_base_;
49 Atom clipboard_atom_; 49 Atom clipboard_atom_;
50 uint64 clipboard_sequence_number_; 50 uint64 clipboard_sequence_number_;
51 uint64 primary_sequence_number_; 51 uint64 primary_sequence_number_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(SelectionChangeObserver); 53 DISALLOW_COPY_AND_ASSIGN(SelectionChangeObserver);
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 return clipboard_; 547 return clipboard_;
548 case BUFFER_SELECTION: 548 case BUFFER_SELECTION:
549 return primary_selection_; 549 return primary_selection_;
550 default: 550 default:
551 NOTREACHED(); 551 NOTREACHED();
552 return NULL; 552 return NULL;
553 } 553 }
554 } 554 }
555 555
556 } // namespace ui 556 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698