OLD | NEW |
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 #include "chrome/browser/chromeos/input_method/virtual_keyboard_selector.h" | 5 #include "chrome/browser/chromeos/input_method/virtual_keyboard_selector.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/stl_util-inl.h" | 8 #include "base/stl_util.h" |
9 | 9 |
10 namespace { | 10 namespace { |
11 const char kDefaultURLPath[] = "index.html"; | 11 const char kDefaultURLPath[] = "index.html"; |
12 const size_t kDefaultURLPathLen = arraysize(kDefaultURLPath) - 1; | 12 const size_t kDefaultURLPathLen = arraysize(kDefaultURLPath) - 1; |
13 } // namespace | 13 } // namespace |
14 | 14 |
15 namespace chromeos { | 15 namespace chromeos { |
16 namespace input_method { | 16 namespace input_method { |
17 | 17 |
18 VirtualKeyboard::VirtualKeyboard(const GURL& url, | 18 VirtualKeyboard::VirtualKeyboard(const GURL& url, |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 iter != system_keyboards_.end(); ++iter) { | 95 iter != system_keyboards_.end(); ++iter) { |
96 if ((*iter)->supported_layouts().count(layout) > 0) { | 96 if ((*iter)->supported_layouts().count(layout) > 0) { |
97 return *iter; | 97 return *iter; |
98 } | 98 } |
99 } | 99 } |
100 return NULL; | 100 return NULL; |
101 } | 101 } |
102 | 102 |
103 } // namespace input_method | 103 } // namespace input_method |
104 } // namespace chromeos | 104 } // namespace chromeos |
OLD | NEW |