| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_VIEWS_WIDGET_ROOT_VIEW_H_ | 5 #ifndef CHROME_VIEWS_WIDGET_ROOT_VIEW_H_ |
| 6 #define CHROME_VIEWS_WIDGET_ROOT_VIEW_H_ | 6 #define CHROME_VIEWS_WIDGET_ROOT_VIEW_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(OS_LINUX) | 10 #if defined(TOOLKIT_GTK) |
| 11 #include <gtk/gtk.h> | 11 #include <gtk/gtk.h> |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
| 15 #include "base/ref_counted.h" | 15 #include "base/ref_counted.h" |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 #include "chrome/views/focus/focus_manager.h" | 18 #include "chrome/views/focus/focus_manager.h" |
| 19 #include "chrome/views/view.h" | 19 #include "chrome/views/view.h" |
| 20 | 20 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // Returns the name of this class: chrome/views/RootView | 177 // Returns the name of this class: chrome/views/RootView |
| 178 virtual std::string GetClassName() const; | 178 virtual std::string GetClassName() const; |
| 179 | 179 |
| 180 // Clears the region that is schedule to be painted. You nearly never need | 180 // Clears the region that is schedule to be painted. You nearly never need |
| 181 // to invoke this. This is primarily intended for Widgets. | 181 // to invoke this. This is primarily intended for Widgets. |
| 182 void ClearPaintRect(); | 182 void ClearPaintRect(); |
| 183 | 183 |
| 184 #if defined(OS_WIN) | 184 #if defined(OS_WIN) |
| 185 // Invoked from the Widget to service a WM_PAINT call. | 185 // Invoked from the Widget to service a WM_PAINT call. |
| 186 void OnPaint(HWND hwnd); | 186 void OnPaint(HWND hwnd); |
| 187 #elif defined(OS_LINUX) | 187 #elif defined(TOOLKIT_GTK) |
| 188 void OnPaint(GdkEventExpose* event); | 188 void OnPaint(GdkEventExpose* event); |
| 189 #endif | 189 #endif |
| 190 | 190 |
| 191 #if defined(OS_WIN) | 191 #if defined(OS_WIN) |
| 192 // Returns the MSAA role of the current view. The role is what assistive | 192 // Returns the MSAA role of the current view. The role is what assistive |
| 193 // technologies (ATs) use to determine what behavior to expect from a given | 193 // technologies (ATs) use to determine what behavior to expect from a given |
| 194 // control. | 194 // control. |
| 195 bool GetAccessibleRole(VARIANT* role); | 195 bool GetAccessibleRole(VARIANT* role); |
| 196 #endif | 196 #endif |
| 197 | 197 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 | 362 |
| 363 #ifndef NDEBUG | 363 #ifndef NDEBUG |
| 364 // True if we're currently processing paint. | 364 // True if we're currently processing paint. |
| 365 bool is_processing_paint_; | 365 bool is_processing_paint_; |
| 366 #endif | 366 #endif |
| 367 }; | 367 }; |
| 368 | 368 |
| 369 } // namespace views | 369 } // namespace views |
| 370 | 370 |
| 371 #endif // CHROME_VIEWS_WIDGET_ROOT_VIEW_H_ | 371 #endif // CHROME_VIEWS_WIDGET_ROOT_VIEW_H_ |
| OLD | NEW |