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) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 29 matching lines...) Expand all Loading... |
40 class FileChooser; | 40 class FileChooser; |
41 class LocalFrame; | 41 class LocalFrame; |
42 class HTMLInputElement; | 42 class HTMLInputElement; |
43 class HitTestResult; | 43 class HitTestResult; |
44 class IntRect; | 44 class IntRect; |
45 class Node; | 45 class Node; |
46 class Page; | 46 class Page; |
47 class PopupMenu; | 47 class PopupMenu; |
48 class PopupMenuClient; | 48 class PopupMenuClient; |
49 class PopupOpeningObserver; | 49 class PopupOpeningObserver; |
| 50 class Widget; |
50 | 51 |
51 struct DateTimeChooserParameters; | 52 struct DateTimeChooserParameters; |
52 struct ViewportDescription; | 53 struct ViewportDescription; |
53 struct WindowFeatures; | 54 struct WindowFeatures; |
54 | 55 |
55 class CORE_EXPORT Chrome final : public HostWindow { | 56 class CORE_EXPORT Chrome final : public HostWindow { |
56 public: | 57 public: |
57 virtual ~Chrome(); | 58 virtual ~Chrome(); |
58 | 59 |
59 static PassOwnPtr<Chrome> create(Page*, ChromeClient*); | 60 static PassOwnPtr<Chrome> create(Page*, ChromeClient*); |
60 | 61 |
61 ChromeClient& client() { return *m_client; } | 62 ChromeClient& client() { return *m_client; } |
62 | 63 |
63 // HostWindow methods. | 64 // HostWindow methods. |
64 virtual void invalidateRect(const IntRect&) override; | 65 virtual void invalidateRect(const IntRect&) override; |
65 virtual IntRect viewportToScreen(const IntRect&) const override; | 66 virtual IntRect viewportToScreen(const IntRect&) const override; |
66 virtual blink::WebScreenInfo screenInfo() const override; | 67 virtual blink::WebScreenInfo screenInfo() const override; |
67 | 68 |
68 virtual void scheduleAnimation() override; | 69 virtual void scheduleAnimation() override; |
69 | 70 |
70 void scheduleAnimationForFrame(LocalFrame* localRoot); | 71 void scheduleAnimationForFrame(LocalFrame* localRoot); |
71 | 72 |
72 void contentsSizeChanged(LocalFrame*, const IntSize&) const; | 73 void contentsSizeChanged(LocalFrame*, const IntSize&) const; |
73 | 74 |
74 void setCursor(const Cursor&); | 75 void setCursor(const Cursor&); |
75 | 76 |
76 void setWindowRect(const IntRect&) const; | 77 void setWindowRect(Widget*, const IntRect&) const; |
77 IntRect windowRect() const; | 78 IntRect windowRect() const; |
78 | 79 |
79 IntRect pageRect() const; | 80 IntRect pageRect() const; |
80 | 81 |
81 void focus() const; | 82 void focus() const; |
82 | 83 |
83 bool canTakeFocus(WebFocusType) const; | 84 bool canTakeFocus(WebFocusType) const; |
84 void takeFocus(WebFocusType) const; | 85 void takeFocus(WebFocusType) const; |
85 | 86 |
86 void focusedNodeChanged(Node*, Node*) const; | 87 void focusedNodeChanged(Node*, Node*) const; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 void notifyPopupOpeningObservers() const; | 137 void notifyPopupOpeningObservers() const; |
137 | 138 |
138 Page* m_page; | 139 Page* m_page; |
139 ChromeClient* m_client; | 140 ChromeClient* m_client; |
140 Vector<PopupOpeningObserver*> m_popupOpeningObservers; | 141 Vector<PopupOpeningObserver*> m_popupOpeningObservers; |
141 }; | 142 }; |
142 | 143 |
143 } // namespace blink | 144 } // namespace blink |
144 | 145 |
145 #endif // Chrome_h | 146 #endif // Chrome_h |
OLD | NEW |