| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 virtual bool HandleInputEvent(const WebInputEvent* input_event); | 43 virtual bool HandleInputEvent(const WebInputEvent* input_event); |
| 44 virtual void MouseCaptureLost(); | 44 virtual void MouseCaptureLost(); |
| 45 virtual void SetFocus(bool enable); | 45 virtual void SetFocus(bool enable); |
| 46 virtual bool ImeSetComposition(int string_type, | 46 virtual bool ImeSetComposition(int string_type, |
| 47 int cursor_position, | 47 int cursor_position, |
| 48 int target_start, | 48 int target_start, |
| 49 int target_end, | 49 int target_end, |
| 50 const std::wstring& ime_string); | 50 const std::wstring& ime_string); |
| 51 virtual bool ImeUpdateStatus(bool* enable_ime, | 51 virtual bool ImeUpdateStatus(bool* enable_ime, |
| 52 gfx::Rect* caret_rect); | 52 gfx::Rect* caret_rect); |
| 53 virtual void SetTextDirection(WebTextDirection direction); |
| 53 | 54 |
| 54 // WebWidgetImpl | 55 // WebWidgetImpl |
| 55 void Init(WebCore::FramelessScrollView* widget, const gfx::Rect& bounds); | 56 void Init(WebCore::FramelessScrollView* widget, const gfx::Rect& bounds); |
| 56 | 57 |
| 57 const gfx::Size& size() const { return size_; } | 58 const gfx::Size& size() const { return size_; } |
| 58 | 59 |
| 59 WebWidgetDelegate* delegate() { | 60 WebWidgetDelegate* delegate() { |
| 60 return delegate_; | 61 return delegate_; |
| 61 } | 62 } |
| 62 | 63 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 108 |
| 108 // This is a non-owning ref. The popup will notify us via popupClosed() | 109 // This is a non-owning ref. The popup will notify us via popupClosed() |
| 109 // before it is destroyed. | 110 // before it is destroyed. |
| 110 WebCore::FramelessScrollView* widget_; | 111 WebCore::FramelessScrollView* widget_; |
| 111 | 112 |
| 112 private: | 113 private: |
| 113 DISALLOW_EVIL_CONSTRUCTORS(WebWidgetImpl); | 114 DISALLOW_EVIL_CONSTRUCTORS(WebWidgetImpl); |
| 114 }; | 115 }; |
| 115 | 116 |
| 116 #endif // WEBKIT_GLUE_WEBWIDGET_IMPL_H__ | 117 #endif // WEBKIT_GLUE_WEBWIDGET_IMPL_H__ |
| OLD | NEW |