//
//  MacroUIConstants.h
//  WebBrowser
//
//  Created by Null on 16/7/29.
//  Copyright © 2016年 Null. All rights reserved.
//

#ifndef MacroConstants_h
#define MacroConstants_h

#define STATUS_BAR_HEIGHT [UIApplication sharedApplication].statusBarFrame.size.height

#define BOTTOM_TOOL_BAR_HEIGHT 49.0
#define TOP_TOOL_BAR_HEIGHT 70
#define TOP_TOOL_BAR_THRESHOLD 45

#define Card_Cell_Close_Width 22
#define Card_Cell_Close_Height 22

#define TEXT_FIELD_PLACEHOLDER   @"搜索或输入网址"

#define BAIDU_SEARCH_URL @"https://m.baidu.com/s?word=%@&ie=utf-8"

#define DEFAULT_IMAGE @"default"
#define DEFAULT_CARD_CELL_IMAGE @"baidu"
#define DEFAULT_CARD_CELL_URL   @"https://m.baidu.com/"
#define DEFAULT_CARD_CELL_TITLE @"百度一下"

#pragma mark - Notification
//无图模式
#define kNoImageModeChanged         @"kNoImageModeChanged"
//tab switch
#define kWebTabSwitch               @"kWebTabSwitch"
//webView navigation change
#define kWebHistoryItemChangedNotification @"WebHistoryItemChangedNotification"
//expand toolbar
#define kExpandHomeToolBarNotification @"kExpandHomeToolBarNotification"
//open in new window
#define kOpenInNewWindowNotification @"kOpenInNewWindowNotification"

#endif /* MacroConstants_h */
