| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/cros/keyboard_library.h" | 5 #include "chrome/browser/chromeos/cros/keyboard_library.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chromeos/cros/cros_library.h" | 7 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 8 #include "cros/chromeos_keyboard.h" | 8 #include "third_party/cros/chromeos_keyboard.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| 11 | 11 |
| 12 class KeyboardLibraryImpl : public KeyboardLibrary { | 12 class KeyboardLibraryImpl : public KeyboardLibrary { |
| 13 public: | 13 public: |
| 14 KeyboardLibraryImpl() {} | 14 KeyboardLibraryImpl() {} |
| 15 virtual ~KeyboardLibraryImpl() {} | 15 virtual ~KeyboardLibraryImpl() {} |
| 16 | 16 |
| 17 std::string GetHardwareKeyboardLayoutName() const { | 17 std::string GetHardwareKeyboardLayoutName() const { |
| 18 if (CrosLibrary::Get()->EnsureLoaded()) { | 18 if (CrosLibrary::Get()->EnsureLoaded()) { |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 // static | 140 // static |
| 141 KeyboardLibrary* KeyboardLibrary::GetImpl(bool stub) { | 141 KeyboardLibrary* KeyboardLibrary::GetImpl(bool stub) { |
| 142 if (stub) | 142 if (stub) |
| 143 return new KeyboardLibraryStubImpl(); | 143 return new KeyboardLibraryStubImpl(); |
| 144 else | 144 else |
| 145 return new KeyboardLibraryImpl(); | 145 return new KeyboardLibraryImpl(); |
| 146 } | 146 } |
| 147 | 147 |
| 148 } // namespace chromeos | 148 } // namespace chromeos |
| OLD | NEW |