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

Side by Side Diff: ui/base/models/accelerator.h

Issue 7569005: Rename UI_API to UI_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/base/message_box_win.h ('k') | ui/base/models/accelerator_cocoa.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef UI_BASE_MODELS_ACCELERATOR_H_ 5 #ifndef UI_BASE_MODELS_ACCELERATOR_H_
6 #define UI_BASE_MODELS_ACCELERATOR_H_ 6 #define UI_BASE_MODELS_ACCELERATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/base/keycodes/keyboard_codes.h" 9 #include "ui/base/keycodes/keyboard_codes.h"
10 #include "ui/ui_api.h" 10 #include "ui/base/ui_export.h"
11 11
12 namespace ui { 12 namespace ui {
13 13
14 // This is a cross-platform base class for accelerator keys used in menus. It is 14 // This is a cross-platform base class for accelerator keys used in menus. It is
15 // meant to be subclassed for concrete toolkit implementations. 15 // meant to be subclassed for concrete toolkit implementations.
16 class UI_API Accelerator { 16 class UI_EXPORT Accelerator {
17 public: 17 public:
18 Accelerator() : key_code_(ui::VKEY_UNKNOWN), modifiers_(0) {} 18 Accelerator() : key_code_(ui::VKEY_UNKNOWN), modifiers_(0) {}
19 19
20 Accelerator(ui::KeyboardCode keycode, int modifiers) 20 Accelerator(ui::KeyboardCode keycode, int modifiers)
21 : key_code_(keycode), 21 : key_code_(keycode),
22 modifiers_(modifiers) {} 22 modifiers_(modifiers) {}
23 23
24 Accelerator(const Accelerator& accelerator) { 24 Accelerator(const Accelerator& accelerator) {
25 key_code_ = accelerator.key_code_; 25 key_code_ = accelerator.key_code_;
26 modifiers_ = accelerator.modifiers_; 26 modifiers_ = accelerator.modifiers_;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 virtual bool GetAcceleratorForCommandId(int command_id, 74 virtual bool GetAcceleratorForCommandId(int command_id,
75 ui::Accelerator* accelerator) = 0; 75 ui::Accelerator* accelerator) = 0;
76 76
77 protected: 77 protected:
78 virtual ~AcceleratorProvider() {} 78 virtual ~AcceleratorProvider() {}
79 }; 79 };
80 80
81 } // namespace ui 81 } // namespace ui
82 82
83 #endif // UI_BASE_MODELS_ACCELERATOR_H_ 83 #endif // UI_BASE_MODELS_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « ui/base/message_box_win.h ('k') | ui/base/models/accelerator_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698