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

Unified Diff: blimp/client/session/tab_control_feature.h

Issue 1636163002: Restructure contents of blimp/client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « blimp/client/session/render_widget_feature_unittest.cc ('k') | blimp/client/session/tab_control_feature.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/session/tab_control_feature.h
diff --git a/blimp/client/session/tab_control_feature.h b/blimp/client/session/tab_control_feature.h
deleted file mode 100644
index 409d461dab58bd710f905f31dd27e98ddc6e7fc7..0000000000000000000000000000000000000000
--- a/blimp/client/session/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_SESSION_TAB_CONTROL_FEATURE_H_
-#define BLIMP_CLIENT_SESSION_TAB_CONTROL_FEATURE_H_
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "blimp/client/blimp_client_export.h"
-#include "blimp/net/blimp_message_processor.h"
-#include "ui/gfx/geometry/size.h"
-
-namespace gfx {
-class Size;
-}
-
-namespace blimp {
-namespace client {
-
-class BLIMP_CLIENT_EXPORT 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(
- scoped_ptr<BlimpMessageProcessor> processor);
-
- // Pushes the current size and scale information to the engine, which will
- // affect the web content display area for all tabs.
- void SetSizeAndScale(const gfx::Size& size, float device_pixel_ratio);
-
- void CreateTab(int tab_id);
- void CloseTab(int tab_id);
-
- private:
- // BlimpMessageProcessor implementation.
- void ProcessMessage(scoped_ptr<BlimpMessage> message,
- const net::CompletionCallback& callback) override;
-
- // Used to send BlimpMessage::TAB_CONTROL messages to the engine.
- scoped_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_SESSION_TAB_CONTROL_FEATURE_H_
« no previous file with comments | « blimp/client/session/render_widget_feature_unittest.cc ('k') | blimp/client/session/tab_control_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698