| 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_FEATURE_TAB_CONTROL_FEATURE_H_ | 5 #ifndef BLIMP_CLIENT_FEATURE_TAB_CONTROL_FEATURE_H_ |
| 6 #define BLIMP_CLIENT_FEATURE_TAB_CONTROL_FEATURE_H_ | 6 #define BLIMP_CLIENT_FEATURE_TAB_CONTROL_FEATURE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "blimp/client/blimp_client_export.h" | |
| 12 #include "blimp/net/blimp_message_processor.h" | 11 #include "blimp/net/blimp_message_processor.h" |
| 13 #include "ui/gfx/geometry/size.h" | 12 #include "ui/gfx/geometry/size.h" |
| 14 | 13 |
| 15 namespace gfx { | 14 namespace gfx { |
| 16 class Size; | 15 class Size; |
| 17 } | 16 } |
| 18 | 17 |
| 19 namespace blimp { | 18 namespace blimp { |
| 20 namespace client { | 19 namespace client { |
| 21 | 20 |
| 22 class BLIMP_CLIENT_EXPORT TabControlFeature : public BlimpMessageProcessor { | 21 class TabControlFeature : public BlimpMessageProcessor { |
| 23 public: | 22 public: |
| 24 TabControlFeature(); | 23 TabControlFeature(); |
| 25 ~TabControlFeature() override; | 24 ~TabControlFeature() override; |
| 26 | 25 |
| 27 // Set the BlimpMessageProcessor that will be used to send | 26 // Set the BlimpMessageProcessor that will be used to send |
| 28 // BlimpMessage::TAB_CONTROL messages to the engine. | 27 // BlimpMessage::TAB_CONTROL messages to the engine. |
| 29 void set_outgoing_message_processor( | 28 void set_outgoing_message_processor( |
| 30 std::unique_ptr<BlimpMessageProcessor> processor); | 29 std::unique_ptr<BlimpMessageProcessor> processor); |
| 31 | 30 |
| 32 // Pushes the current size and scale information to the engine, which will | 31 // Pushes the current size and scale information to the engine, which will |
| (...skipping 15 matching lines...) Expand all Loading... |
| 48 gfx::Size last_size_; | 47 gfx::Size last_size_; |
| 49 float last_device_pixel_ratio_ = -1; | 48 float last_device_pixel_ratio_ = -1; |
| 50 | 49 |
| 51 DISALLOW_COPY_AND_ASSIGN(TabControlFeature); | 50 DISALLOW_COPY_AND_ASSIGN(TabControlFeature); |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 } // namespace client | 53 } // namespace client |
| 55 } // namespace blimp | 54 } // namespace blimp |
| 56 | 55 |
| 57 #endif // BLIMP_CLIENT_FEATURE_TAB_CONTROL_FEATURE_H_ | 56 #endif // BLIMP_CLIENT_FEATURE_TAB_CONTROL_FEATURE_H_ |
| OLD | NEW |