| 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 WidgetClientChromium_H__ |
| 6 #define WidgetClientWin_H__ | 6 #define WidgetClientChromium_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 WidgetClientChromium : public WidgetClient { |
| 21 public: | 21 public: |
| 22 virtual ~WidgetClientWin() {} | 22 virtual ~WidgetClientChromium() {} |
| 23 | 23 |
| 24 // Returns the containing window for the Widget. | 24 // Returns the containing window for the Widget. |
| 25 // 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 |
| 26 // platforms. | 26 // platforms. |
| 27 virtual gfx::ViewHandle containingWindow() = 0; | 27 virtual gfx::ViewHandle containingWindow() = 0; |
| 28 | 28 |
| 29 // Invalidate a region of the widget's containing window. | 29 // Invalidate a region of the widget's containing window. |
| 30 virtual void invalidateRect(const IntRect& damagedRect) = 0; | 30 virtual void invalidateRect(const IntRect& damagedRect) = 0; |
| 31 | 31 |
| 32 // 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 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // tickmark resides in another frame) this function returns kNoTickmark. | 65 // tickmark resides in another frame) this function returns kNoTickmark. |
| 66 static const size_t kNoTickmark = -1; | 66 static const size_t kNoTickmark = -1; |
| 67 virtual size_t getActiveTickmarkIndex(WebCore::Frame* frame) = 0; | 67 virtual size_t getActiveTickmarkIndex(WebCore::Frame* frame) = 0; |
| 68 | 68 |
| 69 // Returns true if this widget is hidden because it's in a background tab. | 69 // Returns true if this widget is hidden because it's in a background tab. |
| 70 virtual bool isHidden() = 0; | 70 virtual bool isHidden() = 0; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace WebCore | 73 } // namespace WebCore |
| 74 | 74 |
| 75 #endif // WidgetClientWin_H__ | 75 #endif // WidgetClientChromium_H__ |
| OLD | NEW |