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

Unified Diff: ui/base/models/accelerator_cocoa.h

Issue 8695005: Move accelerator related files to ui/base/accelerators (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « ui/base/models/accelerator.cc ('k') | ui/base/models/accelerator_cocoa.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/models/accelerator_cocoa.h
diff --git a/ui/base/models/accelerator_cocoa.h b/ui/base/models/accelerator_cocoa.h
deleted file mode 100644
index f1c980c8b6d8429cb9822cfc168805e8b18a9705..0000000000000000000000000000000000000000
--- a/ui/base/models/accelerator_cocoa.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2011 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 UI_BASE_MODELS_ACCELERATOR_COCOA_H_
-#define UI_BASE_MODELS_ACCELERATOR_COCOA_H_
-#pragma once
-
-#include <Foundation/Foundation.h>
-
-#include "base/memory/scoped_nsobject.h"
-#include "ui/base/models/accelerator.h"
-#include "ui/base/ui_export.h"
-
-namespace ui {
-
-// This is a subclass of the cross-platform Accelerator, but with more direct
-// support for Cocoa key equivalents. Note that the typical use case for this
-// class is to initialize it with a string literal, which is why it sends
-// |-copy| to the |key_code| paramater in the constructor.
-class UI_EXPORT AcceleratorCocoa : public Accelerator {
- public:
- AcceleratorCocoa();
- AcceleratorCocoa(NSString* key_code, NSUInteger mask);
- AcceleratorCocoa(const AcceleratorCocoa& accelerator);
- virtual ~AcceleratorCocoa();
-
- AcceleratorCocoa& operator=(const AcceleratorCocoa& accelerator);
-
- bool operator==(const AcceleratorCocoa& rhs) const;
- bool operator!=(const AcceleratorCocoa& rhs) const;
-
- NSString* characters() const {
- return characters_.get();
- }
-
- private:
- // String of characters for the key equivalent.
- scoped_nsobject<NSString> characters_;
-};
-
-} // namespace ui
-
-#endif // UI_BASE_MODELS_ACCELERATOR_COCOA_H_
« no previous file with comments | « ui/base/models/accelerator.cc ('k') | ui/base/models/accelerator_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698