Home
last modified time | relevance | path

Searched refs:instance_ (Results 1 – 25 of 311) sorted by relevance

12345678910>>...13

/external/chromium_org/gin/
Dconverter_unittest.cc34 HandleScope handle_scope(instance_->isolate()); in TEST_F()
36 EXPECT_TRUE(Converter<bool>::ToV8(instance_->isolate(), true)->StrictEquals( in TEST_F()
37 Boolean::New(instance_->isolate(), true))); in TEST_F()
38 EXPECT_TRUE(Converter<bool>::ToV8(instance_->isolate(), false)->StrictEquals( in TEST_F()
39 Boolean::New(instance_->isolate(), false))); in TEST_F()
45 { Boolean::New(instance_->isolate(), false).As<Value>(), false }, in TEST_F()
46 { Boolean::New(instance_->isolate(), true).As<Value>(), true }, in TEST_F()
47 { Number::New(instance_->isolate(), 0).As<Value>(), false }, in TEST_F()
48 { Number::New(instance_->isolate(), 1).As<Value>(), true }, in TEST_F()
49 { Number::New(instance_->isolate(), -1).As<Value>(), true }, in TEST_F()
[all …]
/external/chromium_org/content/renderer/pepper/
Dpepper_webplugin_impl.cc90 instance_ = init_data_->module->CreateInstance( in initialize()
92 if (!instance_.get()) in initialize()
98 bool success = instance_->Initialize(init_data_->arg_names, in initialize()
102 instance_->Delete(); in initialize()
103 instance_ = NULL; in initialize()
125 if (instance_.get()) { in destroy()
128 instance_->Delete(); in destroy()
129 instance_ = NULL; in destroy()
139 instance_object_ = instance_->GetInstanceObject(); in scriptableObject()
142 if (!instance_.get()) in scriptableObject()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/base/
Dreferencecountedsingletonfactory.h65 scoped_ptr<Interface> instance_; variable
75 ASSERT(instance_.get() != NULL); in GetInstance()
80 return instance_.get(); in GetInstance()
86 ASSERT(instance_.get() != NULL); in ReleaseInstance()
106 : instance_(NULL), in rcsf_ptr()
116 return *instance_;
121 return instance_;
128 return instance_; in get()
134 if (instance_) { in release()
135 instance_ = NULL; in release()
[all …]
/external/chromium_org/chrome/browser/ui/views/
Duser_manager_view.cc57 UserManagerView* UserManagerView::instance_ = NULL; member in UserManagerView
74 if (instance_) { in Show()
76 instance_->GetWidget()->Activate(); in Show()
94 if (instance_) in Hide()
95 instance_->GetWidget()->Close(); in Hide()
100 return instance_ ? instance_->GetWidget()->IsActive() : false; in IsShowing()
110 instance_ = new UserManagerView(guest_profile); in OnGuestProfileCreated()
111 DialogDelegate::CreateDialogWidget(instance_, NULL, NULL); in OnGuestProfileCreated()
118 views::HWNDForWidget(instance_->GetWidget())); in OnGuestProfileCreated()
120 instance_->GetWidget()->Show(); in OnGuestProfileCreated()
[all …]
/external/chromium_org/gin/test/
Dv8_test.cc22 instance_.reset(new gin::IsolateHolder); in SetUp()
23 instance_->isolate()->Enter(); in SetUp()
24 HandleScope handle_scope(instance_->isolate()); in SetUp()
25 context_.Reset(instance_->isolate(), Context::New(instance_->isolate())); in SetUp()
26 Local<Context>::New(instance_->isolate(), context_)->Enter(); in SetUp()
31 HandleScope handle_scope(instance_->isolate()); in TearDown()
32 Local<Context>::New(instance_->isolate(), context_)->Exit(); in TearDown()
35 instance_->isolate()->Exit(); in TearDown()
36 instance_.reset(); in TearDown()
/external/chromium_org/ppapi/tests/
Dtest_flash_file.cc121 FileModuleLocal::DeleteFileOrDir(instance_, std::string(), true); in SetUp()
123 FileModuleLocal::CreateDir(instance_, std::string()); in SetUp()
129 PP_FileHandle file_handle = FileModuleLocal::OpenFile(instance_, in TestOpenFile()
141 file_handle = FileModuleLocal::OpenFile(instance_, in TestOpenFile()
161 PP_FileHandle file_handle = FileModuleLocal::OpenFile(instance_, in TestRenameFile()
169 ASSERT_TRUE(FileModuleLocal::RenameFile(instance_, filename, new_filename)); in TestRenameFile()
171 file_handle = FileModuleLocal::OpenFile(instance_, in TestRenameFile()
181 ASSERT_FALSE(FileModuleLocal::QueryFile(instance_, filename, &unused)); in TestRenameFile()
193 PP_FileHandle file_handle = FileModuleLocal::OpenFile(instance_, in TestDeleteFileOrDir()
200 ASSERT_TRUE(FileModuleLocal::DeleteFileOrDir(instance_, filename, false)); in TestDeleteFileOrDir()
[all …]
Dtest_input_event.cc68 instance_->EvalScript(js_code); in ~TestInputEvent()
113 instance_->EvalScript(js_code); in Init()
122 instance_, in CreateMouseEvent()
134 instance_, in CreateWheelEvent()
145 instance_, in CreateKeyEvent()
155 instance_, in CreateCharEvent()
168 pp::TouchInputEvent touch_event(instance_, type, 100, 0); in CreateTouchEvent()
178 instance_->PostMessage(pp::Var(FINISHED_WAITING_MESSAGE)); in PostMessageBarrier()
179 testing_interface_->RunMessageLoop(instance_->pp_instance()); in PostMessageBarrier()
189 testing_interface_->SimulateInputEvent(instance_->pp_instance(), in SimulateInputEvent()
[all …]
Dtest_url_loader.cc67 instance_->AppendError("Testing interface not available"); in Init()
74 instance_->AppendError("FileIO interface not available"); in Init()
79 instance_->AppendError("FileIO_Private interface not available"); in Init()
86 instance_->AppendError("URLLoaderTrusted interface not available"); in Init()
89 instance_->AppendError("URLLoaderTrusted interface is supported by NaCl"); in Init()
155 TestCompletionCallback callback(instance_->pp_instance(), callback_type()); in ReadEntireFile()
175 TestCompletionCallback callback(instance_->pp_instance(), callback_type()); in ReadEntireResponseBody()
194 TestCompletionCallback callback(instance_->pp_instance(), callback_type()); in LoadAndCompareBody()
196 pp::URLLoader loader(instance_); in LoadAndCompareBody()
223 TestCompletionCallback callback(instance_->pp_instance(), callback_type()); in OpenFileSystem()
[all …]
Dtest_flash.cc35 Flash::SetInstanceAlwaysOnTop(instance_, PP_TRUE); in TestSetInstanceAlwaysOnTop()
36 Flash::SetInstanceAlwaysOnTop(instance_, PP_FALSE); in TestSetInstanceAlwaysOnTop()
41 Var result = Flash::GetProxyForURL(instance_, "http://127.0.0.1/foobar/"); in TestGetProxyForURL()
46 result = Flash::GetProxyForURL(instance_, "http://www.google.com"); in TestGetProxyForURL()
50 result = Flash::GetProxyForURL(instance_, "file:///tmp"); in TestGetProxyForURL()
55 result = Flash::GetProxyForURL(instance_, "this_isnt_an_url"); in TestGetProxyForURL()
63 double result = Flash::GetLocalTimeZoneOffset(instance_, 1321491298.0); in TestGetLocalTimeZoneOffset()
80 Var is_3denabled = Flash::GetSetting(instance_, PP_FLASHSETTING_3DENABLED); in TestGetSetting()
83 Var is_incognito = Flash::GetSetting(instance_, PP_FLASHSETTING_INCOGNITO); in TestGetSetting()
86 Var is_stage3denabled = Flash::GetSetting(instance_, in TestGetSetting()
[all …]
Dtest_mouse_cursor.cc31 instance_->pp_instance(), PP_MOUSECURSOR_TYPE_POINTER, 0, NULL))); in TestType()
33 instance_->pp_instance(), static_cast<PP_MouseCursor_Type>(-2), in TestType()
40 pp::ImageData valid_image(instance_, in TestCustom()
45 instance_->pp_instance(), PP_MOUSECURSOR_TYPE_CUSTOM, in TestCustom()
50 instance_->pp_instance(), PP_MOUSECURSOR_TYPE_CUSTOM, 0, NULL))); in TestCustom()
54 instance_->pp_instance(), PP_MOUSECURSOR_TYPE_POINTER, in TestCustom()
58 pp::ImageData big_image(instance_, pp::ImageData::GetNativeImageDataFormat(), in TestCustom()
61 instance_->pp_instance(), PP_MOUSECURSOR_TYPE_CUSTOM, in TestCustom()
68 pp::ImageData valid_image(instance_, in TestPoint()
73 instance_->pp_instance(), PP_MOUSECURSOR_TYPE_CUSTOM, in TestPoint()
[all …]
Dtest_file_io.cc195 TestCompletionCallback callback(instance_->pp_instance(), callback_type()); in TestOpen()
197 pp::FileSystem file_system(instance_, PP_FILESYSTEMTYPE_LOCALTEMPORARY); in TestOpen()
290 TestCompletionCallback callback(instance_->pp_instance(), callback_type()); in TestOpenDirectory()
292 pp::FileSystem file_system(instance_, PP_FILESYSTEMTYPE_LOCALTEMPORARY); in TestOpenDirectory()
305 pp::FileIO file_io(instance_); in TestOpenDirectory()
315 TestCompletionCallback callback(instance_->pp_instance(), callback_type()); in TestReadWriteSetLength()
317 pp::FileSystem file_system(instance_, PP_FILESYSTEMTYPE_LOCALTEMPORARY); in TestReadWriteSetLength()
323 pp::FileIO file_io(instance_); in TestReadWriteSetLength()
334 int32_t rv = WriteEntireBuffer(instance_->pp_instance(), &file_io, 0, in TestReadWriteSetLength()
349 rv = ReadEntireFile(instance_->pp_instance(), &file_io, 0, &read_buffer, in TestReadWriteSetLength()
[all …]
Dtest_resource_array.cc56 instance_, PP_INPUTEVENT_TYPE_MOUSEDOWN, PP_INPUTEVENT_MOUSEBUTTON_LEFT); in TestBasics()
58 instance_, PP_INPUTEVENT_TYPE_MOUSEUP, PP_INPUTEVENT_MOUSEBUTTON_RIGHT); in TestBasics()
59 pp::ImageData image_data = CreateImageData(instance_); in TestBasics()
68 pp::ResourceArray_Dev resource_array(instance_, elements, size); in TestBasics()
79 instance_, PP_INPUTEVENT_TYPE_MOUSEDOWN, PP_INPUTEVENT_MOUSEBUTTON_LEFT); in TestOutOfRangeAccess()
81 instance_, PP_INPUTEVENT_TYPE_MOUSEUP, PP_INPUTEVENT_MOUSEBUTTON_RIGHT); in TestOutOfRangeAccess()
82 pp::ImageData image_data = CreateImageData(instance_); in TestOutOfRangeAccess()
91 pp::ResourceArray_Dev resource_array(instance_, elements, size); in TestOutOfRangeAccess()
99 pp::ResourceArray_Dev resource_array(instance_, NULL, 0); in TestEmptyArray()
106 instance_, PP_INPUTEVENT_TYPE_MOUSEDOWN, PP_INPUTEVENT_MOUSEBUTTON_LEFT); in TestInvalidElement()
[all …]
Dtest_graphics_2d.cc79 testing_interface_->QuitMessageLoop(instance_->pp_instance()); in QuitMessageLoop()
93 pp::ImageData readback(instance_, PP_IMAGEDATAFORMAT_BGRA_PREMUL, in IsDCUniformColor()
103 TestCompletionCallback callback(instance_->pp_instance(), callback_type()); in FlushAndWaitForDone()
179 pp::ImageData readback(instance_, PP_IMAGEDATAFORMAT_BGRA_PREMUL, in IsSquareInDC()
192 pp::ImageData image(instance_, PP_IMAGEDATAFORMAT_BGRA_PREMUL, size, true); in ReplaceContentsAndReturnID()
208 pp::ImageData image(instance_, PP_IMAGEDATAFORMAT_BGRA_PREMUL, in TestInvalidResource()
244 TestCompletionCallback cb(instance_->pp_instance(), PP_OPTIONAL); in TestInvalidResource()
266 pp::Graphics2D a(instance_, pp::Size(16, 0), false); in TestInvalidSize()
267 ASSERT_FALSE(CanFlushContext(instance_, &a)); in TestInvalidSize()
269 pp::Graphics2D b(instance_, pp::Size(0, 16), false); in TestInvalidSize()
[all …]
Dtest_tcp_socket_private.cc42 if (!GetLocalHostPort(instance_->pp_instance(), &host_, &port_)) in Init()
46 ssl_port_ = instance_->ssl_server_port(); in Init()
61 pp::TCPSocketPrivate socket(instance_); in TestBasic()
62 TestCompletionCallback cb(instance_->pp_instance(), callback_type()); in TestBasic()
79 pp::TCPSocketPrivate socket(instance_); in TestReadWrite()
80 TestCompletionCallback cb(instance_->pp_instance(), callback_type()); in TestReadWrite()
99 pp::TCPSocketPrivate socket(instance_); in TestReadWriteSSL()
100 TestCompletionCallback cb(instance_->pp_instance(), callback_type()); in TestReadWriteSSL()
128 pp::TCPSocketPrivate socket(instance_); in TestConnectAddress()
129 TestCompletionCallback cb(instance_->pp_instance(), callback_type()); in TestConnectAddress()
[all …]
Dtest_file_ref.cc54 pp::URLRequestInfo request(instance_); in MakeExternalFileRef()
58 TestCompletionCallback callback(instance_->pp_instance(), callback_type()); in MakeExternalFileRef()
60 pp::URLLoader loader(instance_); in MakeExternalFileRef()
78 TestCompletionCallback callback(instance_->pp_instance(), callback_type()); in DeleteDirectoryRecursively()
80 instance_->pp_instance(), callback_type()); in DeleteDirectoryRecursively()
135 instance_, PP_FILESYSTEMTYPE_LOCALPERSISTENT); in TestCreate()
137 instance_, PP_FILESYSTEMTYPE_LOCALTEMPORARY); in TestCreate()
155 instance_, PP_FILESYSTEMTYPE_LOCALPERSISTENT); in TestGetFileSystemType()
157 instance_, PP_FILESYSTEMTYPE_LOCALTEMPORARY); in TestGetFileSystemType()
176 instance_, PP_FILESYSTEMTYPE_LOCALPERSISTENT); in TestGetName()
[all …]
Dtest_tcp_server_socket_private.cc31 instance_->AppendError( in Init()
37 instance_->AppendError("PPB_TCPSocket_Private interface not available"); in Init()
41 instance_->AppendError("PPB_NetAddress_Private interface not available"); in Init()
43 bool init_host_port = GetLocalHostPort(instance_->pp_instance(), in Init()
46 instance_->AppendError("Can't init host and port"); in Init()
63 TCPSocketPrivate socket(instance_); in GetLocalAddress()
64 TestCompletionCallback callback(instance_->pp_instance(), callback_type()); in GetLocalAddress()
78 TestCompletionCallback callback(instance_->pp_instance(), callback_type()); in SyncRead()
93 TestCompletionCallback callback(instance_->pp_instance(), callback_type()); in SyncWrite()
107 TestCompletionCallback callback(instance_->pp_instance(), callback_type()); in SyncConnect()
[all …]
Dtest_tcp_socket.cc49 if (!GetLocalHostPort(instance_->pp_instance(), &host, &port)) in Init()
52 if (!ResolveHost(instance_->pp_instance(), host, port, &addr_)) in Init()
70 pp::TCPSocket socket(instance_); in TestConnect()
71 TestCompletionCallback cb(instance_->pp_instance(), callback_type()); in TestConnect()
90 pp::TCPSocket socket(instance_); in TestConnect()
91 TestCompletionCallback cb(instance_->pp_instance(), callback_type()); in TestConnect()
120 pp::TCPSocket socket(instance_); in TestReadWrite()
121 TestCompletionCallback cb(instance_->pp_instance(), callback_type()); in TestReadWrite()
138 pp::TCPSocket socket(instance_); in TestSetOption()
139 TestCompletionCallback cb_1(instance_->pp_instance(), callback_type()); in TestSetOption()
[all …]
Dtest_udp_socket.cc56 instance_->AppendError("PPB_TCPSocket interface not available"); in Init()
60 instance_->AppendError("PPB_UDPSocket interface not available"); in Init()
64 instance_->AppendError("PPB_NetAddress interface not available"); in Init()
69 GetLocalHostPort(instance_->pp_instance(), &host, &port) && in Init()
70 ResolveHost(instance_->pp_instance(), host, port, &address_); in Init()
72 instance_->AppendError("Can't init address"); in Init()
89 pp::TCPSocket socket(instance_); in GetLocalAddress()
90 TestCompletionCallback callback(instance_->pp_instance(), callback_type()); in GetLocalAddress()
101 TestCompletionCallback callback_1(instance_->pp_instance(), callback_type()); in SetBroadcastOptions()
108 TestCompletionCallback callback_2(instance_->pp_instance(), callback_type()); in SetBroadcastOptions()
[all …]
Dtest_truetype_font.cc70 instance_->AppendError("PPB_TrueTypeFont_Dev interface not available"); in Init()
75 instance_->AppendError("PPB_Core interface not available"); in Init()
80 instance_->AppendError("PPB_Var interface not available"); in Init()
104 instance_->pp_instance(), false); in TestGetFontFamilies()
105 cc.WaitForResult(pp::TrueTypeFont_Dev::GetFontFamilies(instance_, in TestGetFontFamilies()
117 instance_->pp_instance(), false); in TestGetFontFamilies()
135 instance_->pp_instance(), false); in TestGetFontsInFamily()
136 cc.WaitForResult(pp::TrueTypeFont_Dev::GetFontFamilies(instance_, in TestGetFontsInFamily()
150 cc2(instance_->pp_instance(), false); in TestGetFontsInFamily()
152 instance_, in TestGetFontsInFamily()
[all …]
/external/chromium_org/content/browser/geolocation/
Dwifi_data_provider.cc10 WifiDataProvider* WifiDataProvider::instance_ = NULL; member in content::WifiDataProvider
29 if (!instance_) { in Register()
30 instance_ = new WifiDataProvider(); in Register()
33 DCHECK(instance_); in Register()
34 instance_->AddCallback(callback); in Register()
38 instance_->StartDataProvider(); in Register()
39 return instance_; in Register()
44 DCHECK(instance_); in Unregister()
45 DCHECK(instance_->has_callbacks()); in Unregister()
46 if (!instance_->RemoveCallback(callback)) { in Unregister()
[all …]
/external/chromium_org/native_client_sdk/src/examples/api/socket/
Decho_server.cc37 instance_->PostMessage("TCPSocket not available"); in Start()
41 listening_socket_ = pp::TCPSocket(instance_); in Start()
43 instance_->PostMessage("Error creating TCPSocket."); in Start()
49 instance_->PostMessage(status.str()); in Start()
54 pp::NetAddress addr(instance_, ipv4_addr); in Start()
59 instance_->PostMessage("Error binding listening socket."); in Start()
68 instance_->PostMessage(status.str()); in OnBindCompletion()
77 instance_->PostMessage("server: Error listening on server socket."); in OnBindCompletion()
86 instance_->PostMessage(status.str()); in OnListenCompletion()
92 instance_->PostMessage(status.str()); in OnListenCompletion()
[all …]
/external/chromium_org/ui/base/test/
Dui_controls_aura.cc11 UIControlsAura* instance_ = NULL; variable
27 return instance_->SendKeyPress( in SendKeyPress()
40 return instance_->SendKeyPressNotifyWhenDone( in SendKeyPressNotifyWhenDone()
47 return instance_->SendMouseMove(x, y); in SendMouseMove()
55 return instance_->SendMouseMoveNotifyWhenDone(x, y, task); in SendMouseMoveNotifyWhenDone()
61 return instance_->SendMouseEvents(type, state); in SendMouseEvents()
69 return instance_->SendMouseEventsNotifyWhenDone(type, state, task); in SendMouseEventsNotifyWhenDone()
75 return instance_->SendMouseClick(type); in SendMouseClick()
80 instance_->RunClosureAfterAllPendingUIEvents(closure); in RunClosureAfterAllPendingUIEvents()
91 delete instance_; in InstallUIControlsAura()
[all …]
/external/chromium_org/ppapi/cpp/dev/
Dtext_input_dev.cc45 : instance_(instance) { in TextInput_Dev()
52 Instance::RemovePerInstanceObject(instance_, kPPPTextInputInterface, this); in ~TextInput_Dev()
63 instance_.pp_instance(), type); in SetTextInputType()
66 instance_.pp_instance(), type); in SetTextInputType()
74 instance_.pp_instance(), &caret.pp_rect(), &bounding_box.pp_rect()); in UpdateCaretPosition()
77 instance_.pp_instance(), &caret.pp_rect(), &bounding_box.pp_rect()); in UpdateCaretPosition()
84 instance_.pp_instance()); in CancelCompositionText()
87 instance_.pp_instance()); in CancelCompositionText()
94 instance_.pp_instance()); in SelectionChanged()
103 instance_.pp_instance(), text.c_str(), caret, anchor); in UpdateSurroundingText()
/external/chromium_org/base/memory/
Dsingleton.h232 base::subtle::AtomicWord value = base::subtle::NoBarrier_Load(&instance_); in get()
235 ANNOTATE_HAPPENS_AFTER(&instance_); in get()
241 &instance_, 0, base::internal::kBeingCreatedMarker) == 0) { in get()
250 ANNOTATE_HAPPENS_BEFORE(&instance_); in get()
252 &instance_, reinterpret_cast<base::subtle::AtomicWord>(newval)); in get()
261 value = base::internal::WaitForInstance(&instance_); in get()
264 ANNOTATE_HAPPENS_AFTER(&instance_); in get()
275 reinterpret_cast<Type*>(base::subtle::NoBarrier_Load(&instance_))); in OnExit()
276 instance_ = 0; in OnExit()
278 static base::subtle::AtomicWord instance_; variable
[all …]
/external/chromium/base/memory/
Dsingleton.h206 base::subtle::AtomicWord value = base::subtle::NoBarrier_Load(&instance_); in get()
209 ANNOTATE_HAPPENS_AFTER(&instance_); in get()
214 if (base::subtle::Acquire_CompareAndSwap(&instance_, in get()
225 ANNOTATE_HAPPENS_BEFORE(&instance_); in get()
227 &instance_, reinterpret_cast<base::subtle::AtomicWord>(newval)); in get()
243 value = base::subtle::NoBarrier_Load(&instance_); in get()
250 ANNOTATE_HAPPENS_AFTER(&instance_); in get()
261 reinterpret_cast<Type*>(base::subtle::NoBarrier_Load(&instance_))); in OnExit()
262 instance_ = 0; in OnExit()
264 static base::subtle::AtomicWord instance_; variable
[all …]

12345678910>>...13