Home
last modified time | relevance | path

Searched refs:core_api (Results 1 – 25 of 178) sorted by relevance

12345678

/external/chromium_org/extensions/browser/api/serial/
Dserial_connection.cc20 core_api::serial::SendError ConvertSendErrorFromMojo( in ConvertSendErrorFromMojo()
24 return core_api::serial::SEND_ERROR_NONE; in ConvertSendErrorFromMojo()
26 return core_api::serial::SEND_ERROR_DISCONNECTED; in ConvertSendErrorFromMojo()
28 return core_api::serial::SEND_ERROR_PENDING; in ConvertSendErrorFromMojo()
30 return core_api::serial::SEND_ERROR_TIMEOUT; in ConvertSendErrorFromMojo()
32 return core_api::serial::SEND_ERROR_SYSTEM_ERROR; in ConvertSendErrorFromMojo()
34 return core_api::serial::SEND_ERROR_NONE; in ConvertSendErrorFromMojo()
37 core_api::serial::ReceiveError ConvertReceiveErrorFromMojo( in ConvertReceiveErrorFromMojo()
41 return core_api::serial::RECEIVE_ERROR_NONE; in ConvertReceiveErrorFromMojo()
43 return core_api::serial::RECEIVE_ERROR_DISCONNECTED; in ConvertReceiveErrorFromMojo()
[all …]
Dserial_connection.h37 void(const std::string& data, core_api::serial::ReceiveError error)>
44 void(int bytes_sent, core_api::serial::SendError error)>
93 bool Configure(const core_api::serial::ConnectionOptions& options);
98 bool GetInfo(core_api::serial::ConnectionInfo* info) const;
104 core_api::serial::DeviceControlSignals* control_signals) const;
110 const core_api::serial::HostControlSignals& control_signals);
200 extensions::core_api::serial::HostControlSignals> {
202 const extensions::core_api::serial::HostControlSignals& input);
207 extensions::core_api::serial::ConnectionOptions> {
209 const extensions::core_api::serial::ConnectionOptions& input);
/external/chromium_org/extensions/browser/api/usb/
Dusb_api.h36 const extensions::core_api::usb::DeviceFilter& input,
42 const extensions::core_api::usb::Device& input_device);
45 const extensions::core_api::usb::ConnectionHandle& input_device_handle);
59 bool ConvertDirectionSafely(const extensions::core_api::usb::Direction& input,
62 const extensions::core_api::usb::RequestType& input,
65 const extensions::core_api::usb::Recipient& input,
90 scoped_ptr<extensions::core_api::usb::FindDevices::Params> parameters_;
109 scoped_ptr<extensions::core_api::usb::GetDevices::Params> parameters_;
127 scoped_ptr<extensions::core_api::usb::RequestAccess::Params> parameters_;
144 scoped_ptr<extensions::core_api::usb::OpenDevice::Params> parameters_;
[all …]
/external/chromium_org/extensions/browser/api/system_storage/
Dsystem_storage_api.cc11 using core_api::system_storage::StorageUnitInfo;
12 namespace EjectDevice = core_api::system_storage::EjectDevice;
13 namespace GetAvailableCapacity = core_api::system_storage::GetAvailableCapacity;
29 results_ = core_api::system_storage::GetInfo::Results::Create( in OnGetStorageInfoCompleted()
74 core_api::system_storage::EjectDeviceResultCode result = in HandleResponse()
75 core_api::system_storage::EJECT_DEVICE_RESULT_CODE_FAILURE; in HandleResponse()
78 result = core_api::system_storage::EJECT_DEVICE_RESULT_CODE_SUCCESS; in HandleResponse()
81 result = core_api::system_storage::EJECT_DEVICE_RESULT_CODE_IN_USE; in HandleResponse()
85 core_api::system_storage::EJECT_DEVICE_RESULT_CODE_NO_SUCH_DEVICE; in HandleResponse()
88 result = core_api::system_storage::EJECT_DEVICE_RESULT_CODE_FAILURE; in HandleResponse()
[all …]
/external/chromium_org/extensions/browser/api/power/
Dpower_api_manager.cc19 LevelToPowerSaveBlockerType(core_api::power::Level level) { in LevelToPowerSaveBlockerType()
21 case core_api::power::LEVEL_SYSTEM: in LevelToPowerSaveBlockerType()
23 case core_api::power::LEVEL_DISPLAY: // fallthrough in LevelToPowerSaveBlockerType()
24 case core_api::power::LEVEL_NONE: in LevelToPowerSaveBlockerType()
48 core_api::power::Level level) { in AddRequest()
75 current_level_(core_api::power::LEVEL_SYSTEM) { in PowerApiManager()
87 core_api::power::Level new_level = core_api::power::LEVEL_SYSTEM; in UpdatePowerSaveBlocker()
90 if (it->second == core_api::power::LEVEL_DISPLAY) in UpdatePowerSaveBlocker()
Dpower_api.cc13 scoped_ptr<core_api::power::RequestKeepAwake::Params> params( in RunSync()
14 core_api::power::RequestKeepAwake::Params::Create(*args_)); in RunSync()
16 EXTENSION_FUNCTION_VALIDATE(params->level != core_api::power::LEVEL_NONE); in RunSync()
Dpower_api_manager.h43 core_api::power::Level level);
86 core_api::power::Level current_level_;
90 typedef std::map<std::string, core_api::power::Level> ExtensionLevelMap;
/external/chromium_org/chrome/browser/extensions/
Ddisplay_info_provider_chromeos_unittest.cc31 const core_api::system_display::DisplayProperties& info, in CallSetDisplayUnitInfo()
54 const core_api::system_display::Insets& insets) const { in SystemInfoDisplayInsetsToString()
61 const core_api::system_display::Bounds& bounds) const { in SystemInfoDisplayBoundsToString()
318 core_api::system_display::DisplayProperties info; in TEST_F()
337 core_api::system_display::DisplayProperties info; in TEST_F()
356 core_api::system_display::DisplayProperties info; in TEST_F()
375 core_api::system_display::DisplayProperties info; in TEST_F()
394 core_api::system_display::DisplayProperties info; in TEST_F()
413 core_api::system_display::DisplayProperties info; in TEST_F()
432 core_api::system_display::DisplayProperties info; in TEST_F()
[all …]
Ddisplay_info_provider_win.cc20 using core_api::system_display::DisplayUnitInfo;
62 const core_api::system_display::DisplayProperties& info, in SetInfo()
70 extensions::core_api::system_display::DisplayUnitInfo* unit) { in UpdateDisplayUnitInfoForPlatform()
/external/chromium_org/extensions/browser/api/hid/
Dhid_api.h58 scoped_ptr<core_api::hid::GetDevices::Params> parameters_;
77 scoped_ptr<core_api::hid::Connect::Params> parameters_;
95 scoped_ptr<core_api::hid::Disconnect::Params> parameters_;
117 scoped_ptr<core_api::hid::Receive::Params> parameters_;
137 scoped_ptr<core_api::hid::Send::Params> parameters_;
160 scoped_ptr<core_api::hid::ReceiveFeatureReport::Params> parameters_;
180 scoped_ptr<core_api::hid::SendFeatureReport::Params> parameters_;
/external/chromium_org/extensions/browser/api/system_network/
Dsystem_network_api.cc12 namespace core_api { namespace
63 std::vector<linked_ptr<core_api::system_network::NetworkInterface> > in SendResponseOnUIThread()
69 linked_ptr<core_api::system_network::NetworkInterface> info = in SendResponseOnUIThread()
70 make_linked_ptr(new core_api::system_network::NetworkInterface); in SendResponseOnUIThread()
77 results_ = core_api::system_network::GetNetworkInterfaces::Results::Create( in SendResponseOnUIThread()
/external/chromium_org/extensions/browser/api/socket/
Dsocket_api.h165 scoped_ptr<core_api::socket::Create::Params> params_;
256 scoped_ptr<core_api::socket::Listen::Params> params_;
275 scoped_ptr<core_api::socket::Accept::Params> params_;
293 scoped_ptr<core_api::socket::Read::Params> params_;
334 scoped_ptr<core_api::socket::RecvFrom::Params> params_;
379 scoped_ptr<core_api::socket::SetKeepAlive::Params> params_;
396 scoped_ptr<core_api::socket::SetNoDelay::Params> params_;
413 scoped_ptr<core_api::socket::GetInfo::Params> params_;
444 scoped_ptr<core_api::socket::JoinGroup::Params> params_;
461 scoped_ptr<core_api::socket::LeaveGroup::Params> params_;
[all …]
Dsocket_api.cc147 params_ = core_api::socket::Create::Params::Create(*args_); in Prepare()
151 case extensions::core_api::socket::SOCKET_TYPE_TCP: in Prepare()
154 case extensions::core_api::socket::SOCKET_TYPE_UDP: in Prepare()
157 case extensions::core_api::socket::SOCKET_TYPE_NONE: in Prepare()
310 params_ = core_api::socket::Listen::Params::Create(*args_); in Prepare()
346 params_ = core_api::socket::Accept::Params::Create(*args_); in Prepare()
379 params_ = core_api::socket::Read::Params::Create(*args_); in Prepare()
454 params_ = core_api::socket::RecvFrom::Params::Create(*args_); in Prepare()
566 params_ = core_api::socket::SetKeepAlive::Params::Create(*args_); in Prepare()
590 params_ = core_api::socket::SetNoDelay::Params::Create(*args_); in Prepare()
[all …]
/external/chromium_org/extensions/browser/api/system_display/
Dsystem_display_api.cc20 using core_api::system_display::DisplayUnitInfo;
22 namespace SetDisplayProperties = core_api::system_display::SetDisplayProperties;
24 typedef std::vector<linked_ptr<core_api::system_display::DisplayUnitInfo> >
31 core_api::system_display::GetInfo::Results::Create(all_displays_info); in RunSync()
Ddisplay_info_provider.h21 namespace core_api {
28 typedef std::vector<linked_ptr<core_api::system_display::DisplayUnitInfo> >
47 const core_api::system_display::DisplayProperties& info,
66 core_api::system_display::DisplayUnitInfo* unit) = 0;
Ddisplay_info_provider.cc35 core_api::system_display::DisplayUnitInfo* CreateDisplayUnitInfo( in CreateDisplayUnitInfo()
38 core_api::system_display::DisplayUnitInfo* unit = in CreateDisplayUnitInfo()
39 new core_api::system_display::DisplayUnitInfo(); in CreateDisplayUnitInfo()
84 linked_ptr<core_api::system_display::DisplayUnitInfo> unit( in GetAllDisplaysInfo()
/external/chromium_org/chrome/browser/chromeos/app_mode/
Dkiosk_app_update_service.cc91 extensions::core_api::runtime::OnRestartRequired::REASON_APP_UPDATE); in OnAppUpdateAvailable()
97 extensions::core_api::runtime::OnRestartRequired::Reason restart_reason = in OnRebootScheduled()
98 extensions::core_api::runtime::OnRestartRequired::REASON_NONE; in OnRebootScheduled()
102 extensions::core_api::runtime::OnRestartRequired::REASON_OS_UPDATE; in OnRebootScheduled()
106 extensions::core_api::runtime::OnRestartRequired::REASON_PERIODIC; in OnRebootScheduled()
129 extensions::core_api::runtime::OnRestartRequired::REASON_APP_UPDATE); in OnKioskAppCacheUpdated()
/external/chromium_org/extensions/browser/
Dbrowser_context_keyed_service_factories.cc30 core_api::TCPServerSocketEventDispatcher::GetFactoryInstance(); in EnsureBrowserContextKeyedServiceFactoriesBuilt()
31 core_api::TCPSocketEventDispatcher::GetFactoryInstance(); in EnsureBrowserContextKeyedServiceFactoriesBuilt()
32 core_api::UDPSocketEventDispatcher::GetFactoryInstance(); in EnsureBrowserContextKeyedServiceFactoriesBuilt()
/external/chromium_org/extensions/browser/api/system_cpu/
Dcpu_info_provider.h22 const core_api::system_cpu::CpuInfo& cpu_info() const { return info_; } in cpu_info()
35 std::vector<linked_ptr<core_api::system_cpu::ProcessorInfo> >* infos);
50 core_api::system_cpu::CpuInfo info_;
Dcpu_info_provider.cc11 using core_api::system_cpu::CpuInfo;
38 info_.processors.push_back(linked_ptr<core_api::system_cpu::ProcessorInfo>( in QueryInfo()
39 new core_api::system_cpu::ProcessorInfo())); in QueryInfo()
/external/chromium_org/extensions/browser/api/app_window/
Dapp_window_api.h13 namespace core_api {
30 const extensions::core_api::app_window::CreateWindowOptions& options,
36 const extensions::core_api::app_window::CreateWindowOptions& options,
/external/chromium_org/chrome/browser/extensions/api/system_cpu/
Dsystem_cpu_apitest.cc10 using core_api::system_cpu::CpuInfo;
26 info_.processors.push_back(linked_ptr<core_api::system_cpu::ProcessorInfo>( in QueryInfo()
27 new core_api::system_cpu::ProcessorInfo())); in QueryInfo()
/external/chromium_org/extensions/browser/api/test/
Dtest_api.cc33 namespace Log = core_api::test::Log;
34 namespace NotifyFail = core_api::test::NotifyFail;
35 namespace PassMessage = core_api::test::PassMessage;
36 namespace WaitForRoundTrip = core_api::test::WaitForRoundTrip;
/external/chromium_org/extensions/browser/api/sockets_tcp/
Dsockets_tcp_api.cc18 using extensions::core_api::sockets_tcp::SocketInfo;
19 using extensions::core_api::sockets_tcp::SocketProperties;
85 namespace core_api { namespace
165 params_ = core_api::sockets_tcp::SetPaused::Params::Create(*args_); in Prepare()
200 params_ = core_api::sockets_tcp::SetKeepAlive::Params::Create(*args_); in Prepare()
226 params_ = core_api::sockets_tcp::SetNoDelay::Params::Create(*args_); in Prepare()
461 params_ = core_api::sockets_tcp::Secure::Params::Create(*args_); in Prepare()
505 core_api::socket::SecureOptions legacy_params; in AsyncWorkStart()
508 new core_api::socket::TLSVersionConstraints); in AsyncWorkStart()
543 results_ = core_api::sockets_tcp::Secure::Results::Create(result); in TlsConnectDone()
/external/chromium_org/chrome/browser/extensions/api/storage/
Dsync_value_store_cache.cc30 static_cast<size_t>(core_api::storage::sync::QUOTA_BYTES), in GetSyncQuotaLimits()
31 static_cast<size_t>(core_api::storage::sync::QUOTA_BYTES_PER_ITEM), in GetSyncQuotaLimits()
32 static_cast<size_t>(core_api::storage::sync::MAX_ITEMS) in GetSyncQuotaLimits()

12345678