| 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 WidgetClientWin_H__ | 5 #ifndef WidgetClientWin_H__ |
| 6 #define WidgetClientWin_H__ | 6 #define WidgetClientWin_H__ |
| 7 | 7 |
| 8 #include "base/gfx/native_widget_types.h" | 8 #include "base/gfx/native_widget_types.h" |
| 9 #include "WidgetClient.h" | 9 #include "WidgetClient.h" |
| 10 | 10 |
| 11 class SkBitmap; | 11 class SkBitmap; |
| 12 | 12 |
| 13 namespace WebCore { | 13 namespace WebCore { |
| 14 | 14 |
| 15 class Cursor; | 15 class Cursor; |
| 16 class IntRect; | 16 class IntRect; |
| 17 class Range; | 17 class Range; |
| 18 | 18 |
| 19 // Generic interface for features needed by the Widget. | 19 // Generic interface for features needed by the Widget. |
| 20 class WidgetClientWin : public WidgetClient { | 20 class WidgetClientWin : public WidgetClient { |
| 21 public: | 21 public: |
| 22 virtual ~WidgetClientWin() {} |
| 23 |
| 22 // Returns the containing window for the Widget. | 24 // Returns the containing window for the Widget. |
| 23 // TODO(pinkerton): this needs a better name, "window" is incorrect on other | 25 // TODO(pinkerton): this needs a better name, "window" is incorrect on other |
| 24 // platforms. | 26 // platforms. |
| 25 virtual gfx::ViewHandle containingWindow() = 0; | 27 virtual gfx::ViewHandle containingWindow() = 0; |
| 26 | 28 |
| 27 // Invalidate a region of the widget's containing window. | 29 // Invalidate a region of the widget's containing window. |
| 28 virtual void invalidateRect(const IntRect& damagedRect) = 0; | 30 virtual void invalidateRect(const IntRect& damagedRect) = 0; |
| 29 | 31 |
| 30 // Scroll the region of the widget's containing window within the given | 32 // Scroll the region of the widget's containing window within the given |
| 31 // clipRect by the specified dx and dy. | 33 // clipRect by the specified dx and dy. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 62 // frame does not have an active tickmark (for example if the active | 64 // frame does not have an active tickmark (for example if the active |
| 63 // tickmark resides in another frame) this function returns kNoTickmark. | 65 // tickmark resides in another frame) this function returns kNoTickmark. |
| 64 static const size_t kNoTickmark = -1; | 66 static const size_t kNoTickmark = -1; |
| 65 virtual size_t getActiveTickmarkIndex(WebCore::Frame* frame) = 0; | 67 virtual size_t getActiveTickmarkIndex(WebCore::Frame* frame) = 0; |
| 66 }; | 68 }; |
| 67 | 69 |
| 68 } // namespace WebCore | 70 } // namespace WebCore |
| 69 | 71 |
| 70 #endif // WidgetClientWin_H__ | 72 #endif // WidgetClientWin_H__ |
| 71 | 73 |
| OLD | NEW |