| 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/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 WebKit::WebRect* caret_rect); | 58 WebKit::WebRect* caret_rect); |
| 59 virtual void SetTextDirection(WebTextDirection direction); | 59 virtual void SetTextDirection(WebTextDirection direction); |
| 60 | 60 |
| 61 // WebWidgetImpl | 61 // WebWidgetImpl |
| 62 void Init(WebCore::FramelessScrollView* widget, | 62 void Init(WebCore::FramelessScrollView* widget, |
| 63 const WebKit::WebRect& bounds); | 63 const WebKit::WebRect& bounds); |
| 64 void InitWithItems(WebCore::FramelessScrollView* widget, | 64 void InitWithItems(WebCore::FramelessScrollView* widget, |
| 65 const WebKit::WebRect& bounds, | 65 const WebKit::WebRect& bounds, |
| 66 int item_height, | 66 int item_height, |
| 67 int selected_index, | 67 int selected_index, |
| 68 const std::vector<MenuItem>& items); | 68 const std::vector<WebMenuItem>& items); |
| 69 | 69 |
| 70 const WebKit::WebSize& size() const { return size_; } | 70 const WebKit::WebSize& size() const { return size_; } |
| 71 | 71 |
| 72 WebWidgetDelegate* delegate() { | 72 WebWidgetDelegate* delegate() { |
| 73 return delegate_; | 73 return delegate_; |
| 74 } | 74 } |
| 75 | 75 |
| 76 void MouseMove(const WebKit::WebMouseEvent& mouse_event); | 76 void MouseMove(const WebKit::WebMouseEvent& mouse_event); |
| 77 void MouseLeave(const WebKit::WebMouseEvent& mouse_event); | 77 void MouseLeave(const WebKit::WebMouseEvent& mouse_event); |
| 78 void MouseDown(const WebKit::WebMouseEvent& mouse_event); | 78 void MouseDown(const WebKit::WebMouseEvent& mouse_event); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 // This is a non-owning ref. The popup will notify us via popupClosed() | 121 // This is a non-owning ref. The popup will notify us via popupClosed() |
| 122 // before it is destroyed. | 122 // before it is destroyed. |
| 123 WebCore::FramelessScrollView* widget_; | 123 WebCore::FramelessScrollView* widget_; |
| 124 | 124 |
| 125 private: | 125 private: |
| 126 DISALLOW_COPY_AND_ASSIGN(WebWidgetImpl); | 126 DISALLOW_COPY_AND_ASSIGN(WebWidgetImpl); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 #endif // WEBKIT_GLUE_WEBWIDGET_IMPL_H__ | 129 #endif // WEBKIT_GLUE_WEBWIDGET_IMPL_H__ |
| OLD | NEW |