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

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

Issue 939603002: Adding support for Smart GO NEXT feature in Android Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months 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
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | Source/web/WebViewImpl.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 virtual void setWindowFeatures(const WebWindowFeatures&) override; 178 virtual void setWindowFeatures(const WebWindowFeatures&) override;
179 virtual void setOpenedByDOM() override; 179 virtual void setOpenedByDOM() override;
180 virtual WebFrame* mainFrame() override; 180 virtual WebFrame* mainFrame() override;
181 virtual WebFrame* findFrameByName( 181 virtual WebFrame* findFrameByName(
182 const WebString& name, WebFrame* relativeToFrame) override; 182 const WebString& name, WebFrame* relativeToFrame) override;
183 virtual WebFrame* focusedFrame() override; 183 virtual WebFrame* focusedFrame() override;
184 virtual void setFocusedFrame(WebFrame*) override; 184 virtual void setFocusedFrame(WebFrame*) override;
185 virtual void setInitialFocus(bool reverse) override; 185 virtual void setInitialFocus(bool reverse) override;
186 virtual void clearFocusedElement() override; 186 virtual void clearFocusedElement() override;
187 virtual void scrollFocusedNodeIntoRect(const WebRect&) override; 187 virtual void scrollFocusedNodeIntoRect(const WebRect&) override;
188 virtual void advanceFocusToNextInputField(bool direction) override;
188 virtual void zoomToFindInPageRect(const WebRect&) override; 189 virtual void zoomToFindInPageRect(const WebRect&) override;
189 virtual void advanceFocus(bool reverse) override; 190 virtual void advanceFocus(bool reverse) override;
190 virtual double zoomLevel() override; 191 virtual double zoomLevel() override;
191 virtual double setZoomLevel(double) override; 192 virtual double setZoomLevel(double) override;
192 virtual void zoomLimitsChanged(double minimumZoomLevel, double maximumZoomLe vel) override; 193 virtual void zoomLimitsChanged(double minimumZoomLevel, double maximumZoomLe vel) override;
193 virtual float textZoomFactor() override; 194 virtual float textZoomFactor() override;
194 virtual float setTextZoomFactor(float) override; 195 virtual float setTextZoomFactor(float) override;
195 virtual void setInitialPageScaleOverride(float) override; 196 virtual void setInitialPageScaleOverride(float) override;
196 virtual bool zoomToMultipleTargetsRect(const WebRect&) override; 197 virtual bool zoomToMultipleTargetsRect(const WebRect&) override;
197 virtual float pageScaleFactor() const override; 198 virtual float pageScaleFactor() const override;
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 enum DragAction { 540 enum DragAction {
540 DragEnter, 541 DragEnter,
541 DragOver 542 DragOver
542 }; 543 };
543 544
544 explicit WebViewImpl(WebViewClient*); 545 explicit WebViewImpl(WebViewClient*);
545 virtual ~WebViewImpl(); 546 virtual ~WebViewImpl();
546 547
547 WebTextInputType textInputType(); 548 WebTextInputType textInputType();
548 int textInputFlags(); 549 int textInputFlags();
550 Element* haveNextInput(Element*);
551 Element* havePreviousInput(Element*);
552 bool wantEnterEvents(Element*);
549 553
550 WebString inputModeOfFocusedElement(); 554 WebString inputModeOfFocusedElement();
551 555
552 // Returns true if the event was actually processed. 556 // Returns true if the event was actually processed.
553 bool keyEventDefault(const WebKeyboardEvent&); 557 bool keyEventDefault(const WebKeyboardEvent&);
554 558
555 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior); 559 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior);
556 560
557 // Returns true if the view was scrolled. 561 // Returns true if the view was scrolled.
558 bool scrollViewWithKeyboard(int keyCode, int modifiers); 562 bool scrollViewWithKeyboard(int keyCode, int modifiers);
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 float m_topControlsLayoutHeight; 756 float m_topControlsLayoutHeight;
753 }; 757 };
754 758
755 // We have no ways to check if the specified WebView is an instance of 759 // We have no ways to check if the specified WebView is an instance of
756 // WebViewImpl because WebViewImpl is the only implementation of WebView. 760 // WebViewImpl because WebViewImpl is the only implementation of WebView.
757 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 761 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
758 762
759 } // namespace blink 763 } // namespace blink
760 764
761 #endif 765 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | Source/web/WebViewImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698