2 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <public_api/widget_view_manager/widget_view_manager.h>
24 #include <internal/widget_view_manager/widget_view_manager_impl.h>
32 WidgetViewManager WidgetViewManager::New( Application application, const std::string& name )
34 Internal::WidgetViewManagerPtr internal = Internal::WidgetViewManager::New( application, name );
36 return WidgetViewManager( internal.Get() );
39 WidgetViewManager WidgetViewManager::DownCast( BaseHandle handle )
41 return WidgetViewManager( dynamic_cast< Internal::WidgetViewManager* >( handle.GetObjectPtr() ) );
44 WidgetViewManager::WidgetViewManager()
48 WidgetViewManager::WidgetViewManager( const WidgetViewManager& handle )
53 WidgetViewManager& WidgetViewManager::operator=( const WidgetViewManager& handle )
55 BaseHandle::operator=(handle);
59 WidgetViewManager::~WidgetViewManager()
63 WidgetViewManager::WidgetViewManager( Internal::WidgetViewManager* implementation )
64 : BaseHandle( implementation )
68 WidgetView WidgetViewManager::AddWidget( const std::string& widgetId, const std::string& contentInfo, int width, int height, double period )
70 return GetImplementation(*this).AddWidget( widgetId, contentInfo, width, height, period );
73 } // namespace WidgetView