blob: c3623b05631be3c1359b22c07aedea83a81ed77b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_METRO_DRIVER_DEVICES_HANDLER_H_
#define CHROME_BROWSER_UI_METRO_DRIVER_DEVICES_HANDLER_H_
#include <windows.ui.core.h>
#include "base/basictypes.h"
#include "win8/metro_driver/print_handler.h"
namespace metro_driver {
// This class handles the devices charm.
class DevicesHandler {
public:
DevicesHandler();
~DevicesHandler();
HRESULT Initialize(winui::Core::ICoreWindow* window);
private:
PrintHandler print_handler_;
DISALLOW_COPY_AND_ASSIGN(DevicesHandler);
};
// This class helps decoding the pointer properties of an event.
class PointerEventHandler {
public:
PointerEventHandler();
~PointerEventHandler();
HRESULT Init(winui::Core::IPointerEventArgs* args);
bool is_mouse() const { return is_mouse_; }
int x() const { return x_; }
int y() const { return y_; }
private:
int x_;
int y_;
bool is_mouse_;
};
} // namespace metro_driver
#endif // CHROME_BROWSER_UI_METRO_DRIVER_DEVICES_HANDLER_H_
|