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 ChromeClientWin_h | 5 #ifndef ChromeClientWin_h |
6 #define ChromeClientWin_h | 6 #define ChromeClientWin_h |
7 | 7 |
8 #include <wtf/Forward.h> | 8 #include <wtf/Forward.h> |
9 | 9 |
10 #include "ChromeClient.h" | 10 #include "ChromeClient.h" |
11 | 11 |
12 namespace WebCore { | 12 namespace WebCore { |
13 class Cursor; | 13 class Cursor; |
14 class FileChooser; | 14 class FileChooser; |
15 class Frame; | 15 class Frame; |
16 class FramelessScrollView; | 16 class FramelessScrollView; |
17 class IntRect; | 17 class IntRect; |
18 class String; | 18 class String; |
19 class Widget; | 19 class Widget; |
20 | 20 |
21 class ChromeClientChromium : public ChromeClient { | 21 class ChromeClientChromium : public ChromeClient { |
22 public: | 22 public: |
23 // Opens the file selection dialog. | 23 // Opens the file selection dialog. |
24 virtual void runFileChooser(const String& defaultFileName, | 24 virtual void runFileChooser(const String& defaultFileName, |
25 PassRefPtr<FileChooser> file_chooser) = 0; | 25 PassRefPtr<FileChooser> file_chooser) = 0; |
26 | 26 |
27 // Notifies the client of a new popup widget. The client should place | 27 // Notifies the client of a new popup widget. The client should place |
28 // and size the widget with the given bounds, relative to the screen. | 28 // and size the widget with the given bounds, relative to the screen. |
29 virtual void popupOpened(FramelessScrollView* popupView, const IntRect&
bounds) = 0; | 29 virtual void popupOpened(FramelessScrollView* popupView, |
| 30 const IntRect& bounds, |
| 31 bool focus_on_show) = 0; |
30 | 32 |
31 // Set the current cursor. | 33 // Set the current cursor. |
32 virtual void setCursor(const Cursor& cursor) = 0; | 34 virtual void setCursor(const Cursor& cursor) = 0; |
33 }; | 35 }; |
34 } | 36 } |
35 | 37 |
36 #endif // ChromeClientWin_h | 38 #endif // ChromeClientWin_h |
37 | 39 |
OLD | NEW |