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

Side by Side Diff: sky/engine/public/web/WebWidget.h

Issue 873963003: Remove more mouse-specific code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Build fixes Created 5 years, 11 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 | « sky/engine/public/web/WebViewClient.h ('k') | sky/engine/web/ChromeClientImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // multiple times once layout has been called, assuming no other 72 // multiple times once layout has been called, assuming no other
73 // changes are made to the WebWidget (e.g., once events are 73 // changes are made to the WebWidget (e.g., once events are
74 // processed, it should be assumed that another call to layout is 74 // processed, it should be assumed that another call to layout is
75 // warranted before painting again). 75 // warranted before painting again).
76 virtual void paint(WebCanvas*, const WebRect& viewPort) = 0; 76 virtual void paint(WebCanvas*, const WebRect& viewPort) = 0;
77 77
78 // Called to inform the WebWidget of an input event. Returns true if 78 // Called to inform the WebWidget of an input event. Returns true if
79 // the event has been processed, false otherwise. 79 // the event has been processed, false otherwise.
80 virtual bool handleInputEvent(const WebInputEvent&) = 0; 80 virtual bool handleInputEvent(const WebInputEvent&) = 0;
81 81
82 // Called to inform the WebWidget that mouse capture was lost.
83 virtual void mouseCaptureLost() = 0;
84
85 // Called to inform the WebWidget that it has gained or lost keyboard focus. 82 // Called to inform the WebWidget that it has gained or lost keyboard focus.
86 virtual void setFocus(bool) = 0; 83 virtual void setFocus(bool) = 0;
87 84
88 // Called to inform the WebWidget of a new composition text. 85 // Called to inform the WebWidget of a new composition text.
89 // If selectionStart and selectionEnd has the same value, then it indicates 86 // If selectionStart and selectionEnd has the same value, then it indicates
90 // the input caret position. If the text is empty, then the existing 87 // the input caret position. If the text is empty, then the existing
91 // composition text will be cancelled. 88 // composition text will be cancelled.
92 // Returns true if the composition text was set successfully. 89 // Returns true if the composition text was set successfully.
93 virtual bool setComposition( 90 virtual bool setComposition(
94 const WebString& text, 91 const WebString& text,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // content. 131 // content.
135 virtual WebColor backgroundColor() const = 0; 132 virtual WebColor backgroundColor() const = 0;
136 133
137 protected: 134 protected:
138 ~WebWidget() { } 135 ~WebWidget() { }
139 }; 136 };
140 137
141 } // namespace blink 138 } // namespace blink
142 139
143 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGET_H_ 140 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGET_H_
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebViewClient.h ('k') | sky/engine/web/ChromeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698