OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 |
OLD | NEW |