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

Side by Side Diff: third_party/WebKit/public/web/WebFrameWidget.h

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Removed an unsued enum form WebInputMethodController Created 4 years, 3 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 20 matching lines...) Expand all
31 #ifndef WebFrameWidget_h 31 #ifndef WebFrameWidget_h
32 #define WebFrameWidget_h 32 #define WebFrameWidget_h
33 33
34 #include "../platform/WebCommon.h" 34 #include "../platform/WebCommon.h"
35 #include "../platform/WebPageVisibilityState.h" 35 #include "../platform/WebPageVisibilityState.h"
36 #include "public/web/WebWidget.h" 36 #include "public/web/WebWidget.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class WebLocalFrame; 40 class WebLocalFrame;
41 class WebInputMethodController;
41 class WebView; 42 class WebView;
42 class WebWidgetClient; 43 class WebWidgetClient;
43 44
44 class WebFrameWidget : public WebWidget { 45 class WebFrameWidget : public WebWidget {
45 public: 46 public:
46 BLINK_EXPORT static WebFrameWidget* create(WebWidgetClient*, WebLocalFrame*) ; 47 BLINK_EXPORT static WebFrameWidget* create(WebWidgetClient*, WebLocalFrame*) ;
47 // Creates a frame widget for a WebView. Temporary helper to help transition 48 // Creates a frame widget for a WebView. Temporary helper to help transition
48 // away from WebView inheriting WebWidget. 49 // away from WebView inheriting WebWidget.
49 // TODO(dcheng): Remove once transition is complete. 50 // TODO(dcheng): Remove once transition is complete.
50 BLINK_EXPORT static WebFrameWidget* create(WebWidgetClient*, WebView*, WebLo calFrame* mainFrame); 51 BLINK_EXPORT static WebFrameWidget* create(WebWidgetClient*, WebView*, WebLo calFrame* mainFrame);
(...skipping 17 matching lines...) Expand all
68 // Setting this takes effect for the currently loaded page, if any, and 69 // Setting this takes effect for the currently loaded page, if any, and
69 // persists across subsequent navigations. Defaults to white prior to the 70 // persists across subsequent navigations. Defaults to white prior to the
70 // first call to this method. 71 // first call to this method.
71 virtual void setBaseBackgroundColor(WebColor) = 0; 72 virtual void setBaseBackgroundColor(WebColor) = 0;
72 73
73 // Returns the local root of this WebFrameWidget. 74 // Returns the local root of this WebFrameWidget.
74 virtual WebLocalFrame* localRoot() = 0; 75 virtual WebLocalFrame* localRoot() = 0;
75 76
76 // WebWidget implementation. 77 // WebWidget implementation.
77 bool isWebFrameWidget() const final { return true; } 78 bool isWebFrameWidget() const final { return true; }
79
80 // Current instance of the active WebInputMethodController, that is, the
81 // WebInputMethodController corresponding to (and owned by) the focused
82 // WebLocalFrameImpl. It might return nullptr when there are no focused
83 // frames or possibly when the WebFrameWidget does not accept IME events.
84 virtual WebInputMethodController* getActiveWebInputMethodController() const = 0;
78 }; 85 };
79 86
80 } // namespace blink 87 } // namespace blink
81 88
82 #endif 89 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698