forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ash: Refactor touch hud drawing to ash/touch_hud.
This is part of the touch hud app for mustash (https://codereview.chromium.org/2092343002/). BUG=588311 TEST=ash_unittests Review-Url: https://codereview.chromium.org/2118223004 Cr-Commit-Position: refs/heads/master@{#405296}
- Loading branch information
Showing
10 changed files
with
323 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright 2016 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. | ||
|
||
{ | ||
'targets': [ | ||
{ | ||
# GN version: //ash/touch_hud | ||
'target_name': 'ash_touch_hud', | ||
'type': '<(component)', | ||
'dependencies': [ | ||
'../base/base.gyp:base', | ||
'../skia/skia.gyp:skia', | ||
'../ui/events/events.gyp:events', | ||
'../ui/gfx/gfx.gyp:gfx', | ||
'../ui/views/views.gyp:views', | ||
], | ||
'defines': [ | ||
'ASH_TOUCH_HUD_IMPLEMENTATION', | ||
], | ||
'sources': [ | ||
'touch_hud/ash_touch_hud_export.h', | ||
'touch_hud/touch_hud_renderer.cc', | ||
'touch_hud/touch_hud_renderer.h', | ||
], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2016 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. | ||
|
||
import("//build/config/ui.gni") | ||
|
||
component("touch_hud") { | ||
sources = [ | ||
"ash_touch_hud_export.h", | ||
"touch_hud_renderer.cc", | ||
"touch_hud_renderer.h", | ||
] | ||
|
||
defines = [ "ASH_TOUCH_HUD_IMPLEMENTATION" ] | ||
|
||
deps = [ | ||
"//base", | ||
"//skia", | ||
"//ui/events", | ||
"//ui/gfx", | ||
"//ui/views", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright 2016 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 ASH_TOUCH_HUD_ASH_TOUCH_HUD_EXPORT_H_ | ||
#define ASH_TOUCH_HUD_ASH_TOUCH_HUD_EXPORT_H_ | ||
|
||
#if defined(COMPONENT_BUILD) | ||
#if defined(WIN32) | ||
|
||
#if defined(ASH_TOUCH_HUD_IMPLEMENTATION) | ||
#define ASH_TOUCH_HUD_EXPORT __declspec(dllexport) | ||
#else | ||
#define ASH_TOUCH_HUD_EXPORT __declspec(dllimport) | ||
#endif // defined(ASH_TOUCH_HUD_IMPLEMENTATION) | ||
|
||
#else // defined(WIN32) | ||
#if defined(ASH_TOUCH_HUD_IMPLEMENTATION) | ||
#define ASH_TOUCH_HUD_EXPORT __attribute__((visibility("default"))) | ||
#else | ||
#define ASH_TOUCH_HUD_EXPORT | ||
#endif | ||
#endif | ||
|
||
#else // defined(COMPONENT_BUILD) | ||
#define ASH_TOUCH_HUD_EXPORT | ||
#endif | ||
|
||
#endif // ASH_TOUCH_HUD_ASH_TOUCH_HUD_EXPORT_H_ |
Oops, something went wrong.