OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DEFAULT_PLUGIN_PLUGIN_IMPL_MAC_H_ | 5 #ifndef CHROME_DEFAULT_PLUGIN_PLUGIN_IMPL_MAC_H_ |
6 #define CHROME_DEFAULT_PLUGIN_PLUGIN_IMPL_MAC_H_ | 6 #define CHROME_DEFAULT_PLUGIN_PLUGIN_IMPL_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "gfx/native_widget_types.h" | 12 #include "gfx/native_widget_types.h" |
13 #include "third_party/npapi/bindings/npapi.h" | 13 #include "third_party/npapi/bindings/npapi.h" |
14 | 14 |
15 #ifdef __OBJ__ | 15 #ifdef __OBJC__ |
16 @class NSImage; | 16 @class NSImage; |
17 @class NSString; | 17 @class NSString; |
18 #else | 18 #else |
19 class NSImage; | 19 class NSImage; |
20 class NSString; | 20 class NSString; |
21 #endif | 21 #endif |
22 | 22 |
23 // Possible plugin installer states. | 23 // Possible plugin installer states. |
24 enum PluginInstallerState { | 24 enum PluginInstallerState { |
25 PluginInstallerStateUndefined, | 25 PluginInstallerStateUndefined, |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // state of the plugin installer. | 161 // state of the plugin installer. |
162 void set_plugin_installer_state(PluginInstallerState new_state) { | 162 void set_plugin_installer_state(PluginInstallerState new_state) { |
163 plugin_installer_state_ = new_state; | 163 plugin_installer_state_ = new_state; |
164 } | 164 } |
165 | 165 |
166 PluginInstallerState plugin_installer_state() const { | 166 PluginInstallerState plugin_installer_state() const { |
167 return plugin_installer_state_; | 167 return plugin_installer_state_; |
168 } | 168 } |
169 | 169 |
170 // Getter for the NPP instance member. | 170 // Getter for the NPP instance member. |
171 const NPP instance() const { | 171 NPP instance() const { |
172 return instance_; | 172 return instance_; |
173 } | 173 } |
174 | 174 |
175 // Returns whether or not the UI layout is right-to-left (such as Hebrew or | 175 // Returns whether or not the UI layout is right-to-left (such as Hebrew or |
176 // Arabic). | 176 // Arabic). |
177 bool IsRTLLayout() const; | 177 bool IsRTLLayout() const; |
178 | 178 |
179 protected: | 179 protected: |
180 int16 OnDrawRect(CGContextRef context, CGRect dirty_rect); | 180 int16 OnDrawRect(CGContextRef context, CGRect dirty_rect); |
181 | 181 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 // Plugin icon | 289 // Plugin icon |
290 NSImage* image_; | 290 NSImage* image_; |
291 // Displayed text | 291 // Displayed text |
292 NSString* command_; | 292 NSString* command_; |
293 | 293 |
294 DISALLOW_COPY_AND_ASSIGN(PluginInstallerImpl); | 294 DISALLOW_COPY_AND_ASSIGN(PluginInstallerImpl); |
295 }; | 295 }; |
296 | 296 |
297 | 297 |
298 #endif // CHROME_DEFAULT_PLUGIN_PLUGIN_IMPL_MAC_H_ | 298 #endif // CHROME_DEFAULT_PLUGIN_PLUGIN_IMPL_MAC_H_ |
OLD | NEW |