Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1734)

Unified Diff: blimp/client/core/contents/tab_control_feature.h

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: blimp/client/core/contents/tab_control_feature.h
diff --git a/blimp/client/core/contents/tab_control_feature.h b/blimp/client/core/contents/tab_control_feature.h
deleted file mode 100644
index 43bc66d941f43821172c4b6975a81bfaa011bcb3..0000000000000000000000000000000000000000
--- a/blimp/client/core/contents/tab_control_feature.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BLIMP_CLIENT_CORE_CONTENTS_TAB_CONTROL_FEATURE_H_
-#define BLIMP_CLIENT_CORE_CONTENTS_TAB_CONTROL_FEATURE_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "blimp/net/blimp_message_processor.h"
-#include "ui/gfx/geometry/size.h"
-
-namespace gfx {
-class Size;
-}
-
-namespace blimp {
-namespace client {
-
-class TabControlFeature : public BlimpMessageProcessor {
- public:
- TabControlFeature();
- ~TabControlFeature() override;
-
- // Set the BlimpMessageProcessor that will be used to send
- // BlimpMessage::TAB_CONTROL messages to the engine.
- void set_outgoing_message_processor(
- std::unique_ptr<BlimpMessageProcessor> processor);
-
- // Pushes the current size and scale information to the engine, which will
- // affect the web content display area for all tabs.
- virtual void SetSizeAndScale(const gfx::Size& size, float device_pixel_ratio);
-
- virtual void CreateTab(int tab_id);
- virtual void CloseTab(int tab_id);
-
- // BlimpMessageProcessor implementation.
- void ProcessMessage(std::unique_ptr<BlimpMessage> message,
- const net::CompletionCallback& callback) override;
-
- private:
- // Used to send BlimpMessage::TAB_CONTROL messages to the engine.
- std::unique_ptr<BlimpMessageProcessor> outgoing_message_processor_;
-
- // Used to avoid sending unnecessary messages to engine.
- gfx::Size last_size_;
- float last_device_pixel_ratio_ = -1;
-
- DISALLOW_COPY_AND_ASSIGN(TabControlFeature);
-};
-
-} // namespace client
-} // namespace blimp
-
-#endif // BLIMP_CLIENT_CORE_CONTENTS_TAB_CONTROL_FEATURE_H_
« no previous file with comments | « blimp/client/core/contents/navigation_feature_unittest.cc ('k') | blimp/client/core/contents/tab_control_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698