| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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__ |
| OLD | NEW |