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

Side by Side Diff: ui/keyboard/keyboard_util.h

Issue 538333002: gn/linux: warnings as errors, turn on Wextra (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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
« no previous file with comments | « net/tools/quic/quic_in_memory_cache.h ('k') | ui/keyboard/keyboard_util.cc » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_KEYBOARD_KEYBOARD_UTIL_H_ 5 #ifndef UI_KEYBOARD_KEYBOARD_UTIL_H_
6 #define UI_KEYBOARD_KEYBOARD_UTIL_H_ 6 #define UI_KEYBOARD_KEYBOARD_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 KEYBOARD_EXPORT bool SendKeyEvent(std::string type, 121 KEYBOARD_EXPORT bool SendKeyEvent(std::string type,
122 int key_value, 122 int key_value,
123 int key_code, 123 int key_code,
124 std::string key_name, 124 std::string key_name,
125 int modifiers, 125 int modifiers,
126 aura::WindowTreeHost* host); 126 aura::WindowTreeHost* host);
127 127
128 // Marks that the keyboard load has started. This is used to measure the time it 128 // Marks that the keyboard load has started. This is used to measure the time it
129 // takes to fully load the keyboard. This should be called before 129 // takes to fully load the keyboard. This should be called before
130 // MarkKeyboardLoadFinished. 130 // MarkKeyboardLoadFinished.
131 KEYBOARD_EXPORT const void MarkKeyboardLoadStarted(); 131 KEYBOARD_EXPORT void MarkKeyboardLoadStarted();
132 132
133 // Marks that the keyboard load has ended. This finishes measuring that the 133 // Marks that the keyboard load has ended. This finishes measuring that the
134 // keyboard is loaded. 134 // keyboard is loaded.
135 KEYBOARD_EXPORT const void MarkKeyboardLoadFinished(); 135 KEYBOARD_EXPORT void MarkKeyboardLoadFinished();
136 136
137 // Get the list of keyboard resources. |size| is populated with the number of 137 // Get the list of keyboard resources. |size| is populated with the number of
138 // resources in the returned array. 138 // resources in the returned array.
139 KEYBOARD_EXPORT const GritResourceMap* GetKeyboardExtensionResources( 139 KEYBOARD_EXPORT const GritResourceMap* GetKeyboardExtensionResources(
140 size_t* size); 140 size_t* size);
141 141
142 // Sets the override content url. 142 // Sets the override content url.
143 // This is used by for input view for extension IMEs. 143 // This is used by for input view for extension IMEs.
144 KEYBOARD_EXPORT void SetOverrideContentUrl(const GURL& url); 144 KEYBOARD_EXPORT void SetOverrideContentUrl(const GURL& url);
145 145
146 // Gets the override content url. 146 // Gets the override content url.
147 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); 147 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl();
148 148
149 // Logs the keyboard control event as a UMA stat. 149 // Logs the keyboard control event as a UMA stat.
150 void LogKeyboardControlEvent(KeyboardControlEvent event); 150 void LogKeyboardControlEvent(KeyboardControlEvent event);
151 151
152 } // namespace keyboard 152 } // namespace keyboard
153 153
154 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ 154 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_in_memory_cache.h ('k') | ui/keyboard/keyboard_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698