| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 BLIMP_CLIENT_SESSION_TAB_CONTROL_FEATURE_H_ | 5 #ifndef BLIMP_CLIENT_SESSION_TAB_CONTROL_FEATURE_H_ |
| 6 #define BLIMP_CLIENT_SESSION_TAB_CONTROL_FEATURE_H_ | 6 #define BLIMP_CLIENT_SESSION_TAB_CONTROL_FEATURE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "blimp/client/blimp_client_export.h" | 10 #include "blimp/client/blimp_client_export.h" |
| 11 #include "blimp/net/blimp_message_processor.h" | 11 #include "blimp/net/blimp_message_processor.h" |
| 12 #include "ui/gfx/geometry/size.h" | 12 #include "ui/gfx/geometry/size.h" |
| 13 | 13 |
| 14 namespace gfx { | 14 namespace gfx { |
| 15 class Size; | 15 class Size; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace blimp { | 18 namespace blimp { |
| 19 namespace client { |
| 19 | 20 |
| 20 class BLIMP_CLIENT_EXPORT TabControlFeature : public BlimpMessageProcessor { | 21 class BLIMP_CLIENT_EXPORT TabControlFeature : public BlimpMessageProcessor { |
| 21 public: | 22 public: |
| 22 TabControlFeature(); | 23 TabControlFeature(); |
| 23 ~TabControlFeature() override; | 24 ~TabControlFeature() override; |
| 24 | 25 |
| 25 // Set the BlimpMessageProcessor that will be used to send | 26 // Set the BlimpMessageProcessor that will be used to send |
| 26 // BlimpMessage::TAB_CONTROL messages to the engine. | 27 // BlimpMessage::TAB_CONTROL messages to the engine. |
| 27 void set_outgoing_message_processor( | 28 void set_outgoing_message_processor( |
| 28 scoped_ptr<BlimpMessageProcessor> processor); | 29 scoped_ptr<BlimpMessageProcessor> processor); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 42 // Used to send BlimpMessage::TAB_CONTROL messages to the engine. | 43 // Used to send BlimpMessage::TAB_CONTROL messages to the engine. |
| 43 scoped_ptr<BlimpMessageProcessor> outgoing_message_processor_; | 44 scoped_ptr<BlimpMessageProcessor> outgoing_message_processor_; |
| 44 | 45 |
| 45 // Used to avoid sending unnecessary messages to engine. | 46 // Used to avoid sending unnecessary messages to engine. |
| 46 gfx::Size last_size_; | 47 gfx::Size last_size_; |
| 47 float last_device_pixel_ratio_ = -1; | 48 float last_device_pixel_ratio_ = -1; |
| 48 | 49 |
| 49 DISALLOW_COPY_AND_ASSIGN(TabControlFeature); | 50 DISALLOW_COPY_AND_ASSIGN(TabControlFeature); |
| 50 }; | 51 }; |
| 51 | 52 |
| 53 } // namespace client |
| 52 } // namespace blimp | 54 } // namespace blimp |
| 53 | 55 |
| 54 #endif // BLIMP_CLIENT_SESSION_TAB_CONTROL_FEATURE_H_ | 56 #endif // BLIMP_CLIENT_SESSION_TAB_CONTROL_FEATURE_H_ |
| OLD | NEW |