mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Add CefHandler::HandleTooltip and default tooltip implementation (issue #61).
- Add Common Controls to cefclient manifest because it's required for the default tooltip implementation. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@96 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -59,6 +59,8 @@ class WebWidgetHost {
|
||||
|
||||
void PaintRect(const gfx::Rect& rect);
|
||||
|
||||
void SetTooltipText(const std::wstring& tooltip_text);
|
||||
|
||||
protected:
|
||||
WebWidgetHost();
|
||||
~WebWidgetHost();
|
||||
@ -73,6 +75,7 @@ class WebWidgetHost {
|
||||
void KeyEvent(UINT message, WPARAM wparam, LPARAM lparam);
|
||||
void CaptureLostEvent();
|
||||
void SetFocus(bool enable);
|
||||
void OnNotify(WPARAM wparam, NMHDR* header);
|
||||
|
||||
static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
|
||||
#elif defined(OS_MACOSX)
|
||||
@ -108,6 +111,9 @@ class WebWidgetHost {
|
||||
painting_ = value;
|
||||
#endif
|
||||
}
|
||||
|
||||
void EnsureTooltip();
|
||||
void ResetTooltip();
|
||||
|
||||
gfx::NativeView view_;
|
||||
WebKit::WebWidget* webwidget_;
|
||||
@ -125,6 +131,10 @@ class WebWidgetHost {
|
||||
|
||||
WebKit::WebKeyboardEvent last_key_event_;
|
||||
|
||||
gfx::NativeView tooltip_view_;
|
||||
std::wstring tooltip_text_;
|
||||
bool tooltip_showing_;
|
||||
|
||||
#ifndef NDEBUG
|
||||
bool painting_;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user