OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 ASSERT(driver); | 1070 ASSERT(driver); |
1071 m_pagePopupDriver = driver; | 1071 m_pagePopupDriver = driver; |
1072 } | 1072 } |
1073 | 1073 |
1074 void ChromeClientImpl::resetPagePopupDriver() | 1074 void ChromeClientImpl::resetPagePopupDriver() |
1075 { | 1075 { |
1076 m_pagePopupDriver = m_webView; | 1076 m_pagePopupDriver = m_webView; |
1077 } | 1077 } |
1078 #endif | 1078 #endif |
1079 | 1079 |
1080 bool ChromeClientImpl::willAddTextFieldDecorationsTo(HTMLInputElement* input) | 1080 bool ChromeClientImpl::willAddTextFieldDecorationsTo(Handle<HTMLInputElement> in
put) |
1081 { | 1081 { |
1082 ASSERT(input); | 1082 ASSERT(input); |
1083 const Vector<OwnPtr<TextFieldDecorator> >& decorators = m_webView->textField
Decorators(); | 1083 const Vector<OwnPtr<TextFieldDecorator> >& decorators = m_webView->textField
Decorators(); |
1084 for (unsigned i = 0; i < decorators.size(); ++i) { | 1084 for (unsigned i = 0; i < decorators.size(); ++i) { |
1085 if (decorators[i]->willAddDecorationTo(input)) | 1085 if (decorators[i]->willAddDecorationTo(input)) |
1086 return true; | 1086 return true; |
1087 } | 1087 } |
1088 return false; | 1088 return false; |
1089 } | 1089 } |
1090 | 1090 |
1091 void ChromeClientImpl::addTextFieldDecorationsTo(HTMLInputElement* input) | 1091 void ChromeClientImpl::addTextFieldDecorationsTo(Handle<HTMLInputElement> input) |
1092 { | 1092 { |
1093 ASSERT(willAddTextFieldDecorationsTo(input)); | 1093 ASSERT(willAddTextFieldDecorationsTo(input)); |
1094 const Vector<OwnPtr<TextFieldDecorator> >& decorators = m_webView->textField
Decorators(); | 1094 const Vector<OwnPtr<TextFieldDecorator> >& decorators = m_webView->textField
Decorators(); |
1095 for (unsigned i = 0; i < decorators.size(); ++i) { | 1095 for (unsigned i = 0; i < decorators.size(); ++i) { |
1096 if (!decorators[i]->willAddDecorationTo(input)) | 1096 if (!decorators[i]->willAddDecorationTo(input)) |
1097 continue; | 1097 continue; |
1098 RefPtr<TextFieldDecorationElement> decoration = TextFieldDecorationEleme
nt::create(input->document(), decorators[i].get()); | 1098 RefPtr<TextFieldDecorationElement> decoration = TextFieldDecorationEleme
nt::create(input->document(), decorators[i].get()); |
1099 decoration->decorate(input, decorators[i]->visibleByDefault()); | 1099 decoration->decorate(input, decorators[i]->visibleByDefault()); |
1100 } | 1100 } |
1101 } | 1101 } |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1198 { | 1198 { |
1199 } | 1199 } |
1200 | 1200 |
1201 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) | 1201 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) |
1202 { | 1202 { |
1203 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); | 1203 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); |
1204 } | 1204 } |
1205 #endif | 1205 #endif |
1206 | 1206 |
1207 } // namespace WebKit | 1207 } // namespace WebKit |
OLD | NEW |