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

Side by Side Diff: webkit/glue/webwidget_impl.h

Issue 155378: Replace ShowAsPopupWithItems to CreatePopupWidgetWithInfo. Also,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webwidget_delegate.h ('k') | webkit/glue/webwidget_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_WEBWIDGET_IMPL_H__ 5 #ifndef WEBKIT_GLUE_WEBWIDGET_IMPL_H__
6 #define WEBKIT_GLUE_WEBWIDGET_IMPL_H__ 6 #define WEBKIT_GLUE_WEBWIDGET_IMPL_H__
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "webkit/api/public/WebPoint.h" 10 #include "webkit/api/public/WebPoint.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 int target_start, 52 int target_start,
53 int target_end, 53 int target_end,
54 const std::wstring& ime_string); 54 const std::wstring& ime_string);
55 virtual bool ImeUpdateStatus(bool* enable_ime, 55 virtual bool ImeUpdateStatus(bool* enable_ime,
56 WebKit::WebRect* caret_rect); 56 WebKit::WebRect* caret_rect);
57 virtual void SetTextDirection(WebTextDirection direction); 57 virtual void SetTextDirection(WebTextDirection direction);
58 58
59 // WebWidgetImpl 59 // WebWidgetImpl
60 void Init(WebCore::FramelessScrollView* widget, 60 void Init(WebCore::FramelessScrollView* widget,
61 const WebKit::WebRect& bounds); 61 const WebKit::WebRect& bounds);
62 void InitWithItems(WebCore::FramelessScrollView* widget,
63 const WebKit::WebRect& bounds,
64 int item_height,
65 int selected_index,
66 const std::vector<WebMenuItem>& items);
67 62
68 const WebKit::WebSize& size() const { return size_; } 63 const WebKit::WebSize& size() const { return size_; }
69 64
70 WebWidgetDelegate* delegate() { 65 WebWidgetDelegate* delegate() {
71 return delegate_; 66 return delegate_;
72 } 67 }
73 68
74 void MouseMove(const WebKit::WebMouseEvent& mouse_event); 69 void MouseMove(const WebKit::WebMouseEvent& mouse_event);
75 void MouseLeave(const WebKit::WebMouseEvent& mouse_event); 70 void MouseLeave(const WebKit::WebMouseEvent& mouse_event);
76 void MouseDown(const WebKit::WebMouseEvent& mouse_event); 71 void MouseDown(const WebKit::WebMouseEvent& mouse_event);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 105
111 // This is a non-owning ref. The popup will notify us via popupClosed() 106 // This is a non-owning ref. The popup will notify us via popupClosed()
112 // before it is destroyed. 107 // before it is destroyed.
113 WebCore::FramelessScrollView* widget_; 108 WebCore::FramelessScrollView* widget_;
114 109
115 private: 110 private:
116 DISALLOW_COPY_AND_ASSIGN(WebWidgetImpl); 111 DISALLOW_COPY_AND_ASSIGN(WebWidgetImpl);
117 }; 112 };
118 113
119 #endif // WEBKIT_GLUE_WEBWIDGET_IMPL_H__ 114 #endif // WEBKIT_GLUE_WEBWIDGET_IMPL_H__
OLDNEW
« no previous file with comments | « webkit/glue/webwidget_delegate.h ('k') | webkit/glue/webwidget_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698