Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef IOS_WEB_VIEW_PUBLIC_CWV_H_ | 5 #ifndef IOS_WEB_VIEW_PUBLIC_CWV_H_ |
| 6 #define IOS_WEB_VIEW_PUBLIC_CWV_H_ | 6 #define IOS_WEB_VIEW_PUBLIC_CWV_H_ |
| 7 | 7 |
| 8 #import <CoreGraphics/CoreGraphics.h> | 8 #import <CoreGraphics/CoreGraphics.h> |
| 9 #import <Foundation/Foundation.h> | 9 #import <Foundation/Foundation.h> |
| 10 | 10 |
| 11 #include "cwv_export.h" | |
|
Hiroshi Ichikawa
2017/03/22 09:44:24
Can you advise me if this relative include is appr
Eugene But (OOO till 7-30)
2017/03/22 15:18:54
This relative include may not work for clients who
michaeldo
2017/03/22 23:16:22
I don't think we should have this here as-is. Mayb
Hiroshi Ichikawa
2017/03/23 05:03:02
Thanks, I tried it and it looks working. It looks
michaeldo
2017/03/23 15:12:41
I'm not sure if it will always search current dire
Hiroshi Ichikawa
2017/03/24 04:57:42
Do you mean that
#include <ChromeWebView/cwv_expor
| |
| 12 | |
| 11 @protocol CWVDelegate; | 13 @protocol CWVDelegate; |
| 12 @class CWVWebView; | 14 @class CWVWebView; |
| 13 | 15 |
| 14 // Main interface for the CWV library. | 16 // Main interface for the CWV library. |
| 15 __attribute__((visibility("default"))) @interface CWV : NSObject | 17 CWV_EXPORT @interface CWV : NSObject |
|
Hiroshi Ichikawa
2017/03/22 09:44:24
I found that this token (or even __attribute__((vi
Eugene But (OOO till 7-30)
2017/03/22 15:18:54
I don't know about workarounds, but you can file a
Hiroshi Ichikawa
2017/03/23 05:03:02
Do you know where to file a bug? Do we use the one
michaeldo
2017/03/23 15:12:41
Just a heads up that fixing it manually isn't idea
Hiroshi Ichikawa
2017/03/24 04:57:42
I agree that fixing manually every time is annoyin
| |
| 16 | 18 |
| 17 // Initializes the CWV library. This function should be called from | 19 // Initializes the CWV library. This function should be called from |
| 18 // |application:didFinishLaunchingWithOptions:|. | 20 // |application:didFinishLaunchingWithOptions:|. |
| 19 + (void)configureWithDelegate:(id<CWVDelegate>)delegate; | 21 + (void)configureWithDelegate:(id<CWVDelegate>)delegate; |
| 20 | 22 |
| 21 // Shuts down the CWV library. This function should be called from | 23 // Shuts down the CWV library. This function should be called from |
| 22 // |applicationwillTerminate:|. | 24 // |applicationwillTerminate:|. |
| 23 + (void)shutDown; | 25 + (void)shutDown; |
| 24 | 26 |
| 25 // Creates and returns a web view. | 27 // Creates and returns a web view. |
| 26 + (CWVWebView*)webViewWithFrame:(CGRect)frame; | 28 + (CWVWebView*)webViewWithFrame:(CGRect)frame; |
| 27 | 29 |
| 28 @end | 30 @end |
| 29 | 31 |
| 30 #endif // IOS_WEB_VIEW_PUBLIC_CWV_H_ | 32 #endif // IOS_WEB_VIEW_PUBLIC_CWV_H_ |
| OLD | NEW |