| 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_GTK_H_ | 5 #ifndef CHROME_DEFAULT_PLUGIN_PLUGIN_IMPL_GTK_H_ |
| 6 #define CHROME_DEFAULT_PLUGIN_PLUGIN_IMPL_GTK_H_ | 6 #define CHROME_DEFAULT_PLUGIN_PLUGIN_IMPL_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 // state of the plugin installer. | 155 // state of the plugin installer. |
| 156 void set_plugin_installer_state(PluginInstallerState new_state) { | 156 void set_plugin_installer_state(PluginInstallerState new_state) { |
| 157 plugin_installer_state_ = new_state; | 157 plugin_installer_state_ = new_state; |
| 158 } | 158 } |
| 159 | 159 |
| 160 PluginInstallerState plugin_installer_state() const { | 160 PluginInstallerState plugin_installer_state() const { |
| 161 return plugin_installer_state_; | 161 return plugin_installer_state_; |
| 162 } | 162 } |
| 163 | 163 |
| 164 // Getter for the NPP instance member. | 164 // Getter for the NPP instance member. |
| 165 const NPP instance() const { | 165 NPP instance() const { |
| 166 return instance_; | 166 return instance_; |
| 167 } | 167 } |
| 168 | 168 |
| 169 // Returns whether or not the UI layout is right-to-left (such as Hebrew or | 169 // Returns whether or not the UI layout is right-to-left (such as Hebrew or |
| 170 // Arabic). | 170 // Arabic). |
| 171 bool IsRTLLayout() const; | 171 bool IsRTLLayout() const; |
| 172 | 172 |
| 173 protected: | 173 protected: |
| 174 // Displays the plugin install confirmation dialog. | 174 // Displays the plugin install confirmation dialog. |
| 175 void ShowInstallDialog(); | 175 void ShowInstallDialog(); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 std::string mime_type_; | 275 std::string mime_type_; |
| 276 // The current state of the plugin installer. | 276 // The current state of the plugin installer. |
| 277 PluginInstallerState plugin_installer_state_; | 277 PluginInstallerState plugin_installer_state_; |
| 278 // GtkPlug containing everything in the plugin. | 278 // GtkPlug containing everything in the plugin. |
| 279 GtkWidget* container_; | 279 GtkWidget* container_; |
| 280 | 280 |
| 281 DISALLOW_COPY_AND_ASSIGN(PluginInstallerImpl); | 281 DISALLOW_COPY_AND_ASSIGN(PluginInstallerImpl); |
| 282 }; | 282 }; |
| 283 | 283 |
| 284 #endif // CHROME_DEFAULT_PLUGIN_PLUGIN_IMPL_GTK_H_ | 284 #endif // CHROME_DEFAULT_PLUGIN_PLUGIN_IMPL_GTK_H_ |
| OLD | NEW |