Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: Source/web/ChromeClientImpl.h

Issue 72543005: Get rid of explict editor dependency from text field (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-11-15T16:10:10 Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 28 matching lines...) Expand all
39 #include "public/platform/WebColor.h" 39 #include "public/platform/WebColor.h"
40 #include "wtf/PassOwnPtr.h" 40 #include "wtf/PassOwnPtr.h"
41 41
42 namespace WebCore { 42 namespace WebCore {
43 class AXObject; 43 class AXObject;
44 class ColorChooser; 44 class ColorChooser;
45 class ColorChooserClient; 45 class ColorChooserClient;
46 class Element; 46 class Element;
47 class FileChooser; 47 class FileChooser;
48 class GraphicsLayerFactory; 48 class GraphicsLayerFactory;
49 class HTMLInputElement;
50 class KeyboardEvent;
49 class PopupContainer; 51 class PopupContainer;
50 class PopupMenuClient; 52 class PopupMenuClient;
51 class RenderBox; 53 class RenderBox;
52 class SecurityOrigin; 54 class SecurityOrigin;
53 class DateTimeChooser; 55 class DateTimeChooser;
54 class DateTimeChooserClient; 56 class DateTimeChooserClient;
55 struct WindowFeatures; 57 struct WindowFeatures;
56 } 58 }
57 59
58 namespace blink { 60 namespace blink {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 virtual bool shouldRunModalDialogDuringPageDismissal(const DialogType&, cons t String& dialogMessage, WebCore::Document::PageDismissalType) const; 179 virtual bool shouldRunModalDialogDuringPageDismissal(const DialogType&, cons t String& dialogMessage, WebCore::Document::PageDismissalType) const;
178 180
179 virtual bool shouldRubberBandInDirection(WebCore::ScrollDirection) const; 181 virtual bool shouldRubberBandInDirection(WebCore::ScrollDirection) const;
180 virtual void numWheelEventHandlersChanged(unsigned); 182 virtual void numWheelEventHandlersChanged(unsigned);
181 183
182 virtual bool requestPointerLock(); 184 virtual bool requestPointerLock();
183 virtual void requestPointerUnlock(); 185 virtual void requestPointerUnlock();
184 virtual bool isPointerLocked(); 186 virtual bool isPointerLocked();
185 187
186 virtual void didAssociateFormControls(const Vector<RefPtr<WebCore::Element> >&) OVERRIDE; 188 virtual void didAssociateFormControls(const Vector<RefPtr<WebCore::Element> >&) OVERRIDE;
189 virtual bool doTextFieldCommandFromEvent(WebCore::HTMLInputElement*, WebCore ::KeyboardEvent*) OVERRIDE;
190 virtual void textDidChangeInTextField(WebCore::HTMLInputElement*) OVERRIDE;
191 virtual void textFieldDidEndEditing(WebCore::HTMLInputElement*) OVERRIDE;
187 192
188 private: 193 private:
189 virtual bool isChromeClientImpl() const OVERRIDE { return true; } 194 virtual bool isChromeClientImpl() const OVERRIDE { return true; }
190 195
191 WebNavigationPolicy getNavigationPolicy(); 196 WebNavigationPolicy getNavigationPolicy();
192 void getPopupMenuInfo(WebCore::PopupContainer*, WebPopupMenuInfo*); 197 void getPopupMenuInfo(WebCore::PopupContainer*, WebPopupMenuInfo*);
193 void setCursor(const WebCursorInfo&); 198 void setCursor(const WebCursorInfo&);
194 199
195 WebViewImpl* m_webView; // weak pointer 200 WebViewImpl* m_webView; // weak pointer
196 bool m_toolbarsVisible; 201 bool m_toolbarsVisible;
(...skipping 22 matching lines...) Expand all
219 224
220 inline ChromeClientImpl* toChromeClientImpl(WebCore::ChromeClient& client) 225 inline ChromeClientImpl* toChromeClientImpl(WebCore::ChromeClient& client)
221 { 226 {
222 ASSERT_WITH_SECURITY_IMPLICATION(client.isChromeClientImpl()); 227 ASSERT_WITH_SECURITY_IMPLICATION(client.isChromeClientImpl());
223 return static_cast<ChromeClientImpl*>(&client); 228 return static_cast<ChromeClientImpl*>(&client);
224 } 229 }
225 230
226 } // namespace blink 231 } // namespace blink
227 232
228 #endif 233 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698