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

Side by Side Diff: ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc

Issue 967693002: Clang fixes for chromeos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/events/ozone/evdev/libgestures_glue/gesture_property_provider.h" 5 #include "ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h"
6 6
7 #include <gestures/gestures.h> 7 #include <gestures/gestures.h>
8 #include <libevdev/libevdev.h> 8 #include <libevdev/libevdev.h>
9 9
10 #include <fnmatch.h> 10 #include <fnmatch.h>
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 bool IsValidPattern(const std::string& pattern); 673 bool IsValidPattern(const std::string& pattern);
674 std::vector<std::string> vid_patterns_; 674 std::vector<std::string> vid_patterns_;
675 std::vector<std::string> pid_patterns_; 675 std::vector<std::string> pid_patterns_;
676 }; 676 };
677 677
678 // Generic base class for device type math criteria. 678 // Generic base class for device type math criteria.
679 class MatchDeviceType : public MatchCriteria { 679 class MatchDeviceType : public MatchCriteria {
680 public: 680 public:
681 explicit MatchDeviceType(const std::string& arg); 681 explicit MatchDeviceType(const std::string& arg);
682 ~MatchDeviceType() override {} 682 ~MatchDeviceType() override {}
683 virtual bool Match(const DevicePtr device) = 0; 683 bool Match(const DevicePtr device) override = 0;
spang 2015/02/27 23:28:47 Just remove it.
stevenjb 2015/03/03 22:02:56 Done.
684 684
685 protected: 685 protected:
686 bool value_; 686 bool value_;
687 bool is_valid_; 687 bool is_valid_;
688 }; 688 };
689 689
690 // Check if a device is a pointer device. 690 // Check if a device is a pointer device.
691 class MatchIsPointer : public MatchDeviceType { 691 class MatchIsPointer : public MatchDeviceType {
692 public: 692 public:
693 explicit MatchIsPointer(const std::string& arg); 693 explicit MatchIsPointer(const std::string& arg);
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 const GesturesPropProvider kGesturePropProvider = { 1547 const GesturesPropProvider kGesturePropProvider = {
1548 GesturesPropFunctionsWrapper::CreateInt, 1548 GesturesPropFunctionsWrapper::CreateInt,
1549 GesturesPropFunctionsWrapper::CreateShort, 1549 GesturesPropFunctionsWrapper::CreateShort,
1550 GesturesPropFunctionsWrapper::CreateBool, 1550 GesturesPropFunctionsWrapper::CreateBool,
1551 GesturesPropFunctionsWrapper::CreateString, 1551 GesturesPropFunctionsWrapper::CreateString,
1552 GesturesPropFunctionsWrapper::CreateReal, 1552 GesturesPropFunctionsWrapper::CreateReal,
1553 GesturesPropFunctionsWrapper::RegisterHandlers, 1553 GesturesPropFunctionsWrapper::RegisterHandlers,
1554 GesturesPropFunctionsWrapper::Free}; 1554 GesturesPropFunctionsWrapper::Free};
1555 1555
1556 } // namespace ui 1556 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698