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

Unified Diff: remoting/client/plugin/empty_cursor_filter.h

Issue 1228333004: Move code that doesn't depend on PPAPI out of remoting/client/plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/client/plugin/empty_cursor_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/empty_cursor_filter.h
diff --git a/remoting/client/plugin/empty_cursor_filter.h b/remoting/client/plugin/empty_cursor_filter.h
deleted file mode 100644
index fdd7355c68b2e54e0417a68c2da0acc71b71b0e3..0000000000000000000000000000000000000000
--- a/remoting/client/plugin/empty_cursor_filter.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2014 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 REMOTING_CLIENT_PLUGIN_EMPTY_CURSOR_FILTER_H_
-#define REMOTING_CLIENT_PLUGIN_EMPTY_CURSOR_FILTER_H_
-
-#include "remoting/protocol/cursor_shape_stub.h"
-
-namespace remoting {
-
-// Returns an empty cursor.
-protocol::CursorShapeInfo EmptyCursorShape();
-
-// Returns true of the supplied cursor is empty, i.e. width and/or height <= 0.
-bool IsCursorShapeEmpty(const protocol::CursorShapeInfo& cursor_shape);
-
-// Helper that checks whether a cursor has any visible pixels, and resizes
-// it down to (0x0) if not.
-// TODO(wez): Turn this into a general-purpose cropping filter that both
-// client and host can use.
-class EmptyCursorFilter : public protocol::CursorShapeStub {
- public:
- explicit EmptyCursorFilter(protocol::CursorShapeStub* cursor_stub);
- ~EmptyCursorFilter() override;
-
- // protocol::CursorShapeStub interface.
- void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) override;
-
- // Replaces the stub to which cursor shapes will be passed-on.
- void set_cursor_stub(protocol::CursorShapeStub* cursor_stub) {
- cursor_stub_ = cursor_stub;
- }
-
- private:
- protocol::CursorShapeStub* cursor_stub_;
-
- DISALLOW_COPY_AND_ASSIGN(EmptyCursorFilter);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_CLIENT_PLUGIN_EMPTY_CURSOR_FILTER_H_
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/client/plugin/empty_cursor_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698