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

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

Issue 2417643002: Move text input mode/info/type into InputMethodController (Closed)
Patch Set: Fix nits Created 4 years, 2 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
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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 friend class WebView; // So WebView::Create can call our constructor 546 friend class WebView; // So WebView::Create can call our constructor
547 friend class WebViewFrameWidget; 547 friend class WebViewFrameWidget;
548 friend class WTF::RefCounted<WebViewImpl>; 548 friend class WTF::RefCounted<WebViewImpl>;
549 friend void setCurrentInputEventForTest(const WebInputEvent*); 549 friend void setCurrentInputEventForTest(const WebInputEvent*);
550 550
551 enum DragAction { DragEnter, DragOver }; 551 enum DragAction { DragEnter, DragOver };
552 552
553 explicit WebViewImpl(WebViewClient*, WebPageVisibilityState); 553 explicit WebViewImpl(WebViewClient*, WebPageVisibilityState);
554 ~WebViewImpl() override; 554 ~WebViewImpl() override;
555 555
556 int textInputFlags();
557
558 WebString inputModeOfFocusedElement();
559
560 // Returns true if the event was actually processed. 556 // Returns true if the event was actually processed.
561 bool keyEventDefault(const WebKeyboardEvent&); 557 bool keyEventDefault(const WebKeyboardEvent&);
562 558
563 // Returns true if the view was scrolled. 559 // Returns true if the view was scrolled.
564 bool scrollViewWithKeyboard(int keyCode, int modifiers); 560 bool scrollViewWithKeyboard(int keyCode, int modifiers);
565 561
566 void hideSelectPopup(); 562 void hideSelectPopup();
567 563
568 HitTestResult hitTestResultForRootFramePos(const IntPoint&); 564 HitTestResult hitTestResultForRootFramePos(const IntPoint&);
569 HitTestResult hitTestResultForViewportPos(const IntPoint&); 565 HitTestResult hitTestResultForViewportPos(const IntPoint&);
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 772 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
777 }; 773 };
778 774
779 // We have no ways to check if the specified WebView is an instance of 775 // We have no ways to check if the specified WebView is an instance of
780 // WebViewImpl because WebViewImpl is the only implementation of WebView. 776 // WebViewImpl because WebViewImpl is the only implementation of WebView.
781 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 777 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
782 778
783 } // namespace blink 779 } // namespace blink
784 780
785 #endif 781 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698