OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008, 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 | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 17 matching lines...) Expand all Loading... |
28 */ | 28 */ |
29 | 29 |
30 #import <WebCore/ChromeClient.h> | 30 #import <WebCore/ChromeClient.h> |
31 #import <WebCore/FocusDirection.h> | 31 #import <WebCore/FocusDirection.h> |
32 #import <wtf/Forward.h> | 32 #import <wtf/Forward.h> |
33 | 33 |
34 @class WebView; | 34 @class WebView; |
35 | 35 |
36 class WebChromeClient : public WebCore::ChromeClient { | 36 class WebChromeClient : public WebCore::ChromeClient { |
37 public: | 37 public: |
38 WebChromeClient(WebView *webView); | 38 WebChromeClient(WebView*); |
39 WebView *webView() const { return m_webView; } | 39 virtual void* webView() const { return static_cast<void*>(m_webView); } |
40 | 40 |
41 virtual void chromeDestroyed(); | 41 virtual void chromeDestroyed(); |
42 | 42 |
43 virtual void setWindowRect(const WebCore::FloatRect&); | 43 virtual void setWindowRect(const WebCore::FloatRect&); |
44 virtual WebCore::FloatRect windowRect(); | 44 virtual WebCore::FloatRect windowRect(); |
45 | 45 |
46 virtual WebCore::FloatRect pageRect(); | 46 virtual WebCore::FloatRect pageRect(); |
47 | 47 |
48 virtual float scaleFactor(); | 48 virtual float scaleFactor(); |
49 | 49 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 virtual bool selectItemAlignmentFollowsMenuWritingDirection(); | 178 virtual bool selectItemAlignmentFollowsMenuWritingDirection(); |
179 virtual PassRefPtr<WebCore::PopupMenu> createPopupMenu(WebCore::PopupMenuCli
ent*) const; | 179 virtual PassRefPtr<WebCore::PopupMenu> createPopupMenu(WebCore::PopupMenuCli
ent*) const; |
180 virtual PassRefPtr<WebCore::SearchPopupMenu> createSearchPopupMenu(WebCore::
PopupMenuClient*) const; | 180 virtual PassRefPtr<WebCore::SearchPopupMenu> createSearchPopupMenu(WebCore::
PopupMenuClient*) const; |
181 | 181 |
182 #if ENABLE(CONTEXT_MENUS) | 182 #if ENABLE(CONTEXT_MENUS) |
183 virtual void showContextMenu(); | 183 virtual void showContextMenu(); |
184 #endif | 184 #endif |
185 private: | 185 private: |
186 WebView *m_webView; | 186 WebView *m_webView; |
187 }; | 187 }; |
OLD | NEW |