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

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

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.cc
diff --git a/blimp/client/core/contents/tab_control_feature.cc b/blimp/client/core/contents/tab_control_feature.cc
deleted file mode 100644
index bf21af61f6645239e54fb26c1ccf2bfe30f15b74..0000000000000000000000000000000000000000
--- a/blimp/client/core/contents/tab_control_feature.cc
+++ /dev/null
@@ -1,70 +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.
-
-#include "blimp/client/core/contents/tab_control_feature.h"
-
-#include "blimp/common/create_blimp_message.h"
-#include "blimp/common/proto/blimp_message.pb.h"
-#include "blimp/common/proto/tab_control.pb.h"
-#include "blimp/net/blimp_message_processor.h"
-#include "net/base/net_errors.h"
-
-namespace blimp {
-namespace client {
-
-TabControlFeature::TabControlFeature() {}
-
-TabControlFeature::~TabControlFeature() {}
-
-void TabControlFeature::set_outgoing_message_processor(
- std::unique_ptr<BlimpMessageProcessor> processor) {
- outgoing_message_processor_ = std::move(processor);
-}
-
-void TabControlFeature::SetSizeAndScale(const gfx::Size& size,
- float device_pixel_ratio) {
- last_size_ = size;
- last_device_pixel_ratio_ = device_pixel_ratio;
-
- SizeMessage* size_details;
- std::unique_ptr<BlimpMessage> message = CreateBlimpMessage(&size_details);
- size_details->set_width(size.width());
- size_details->set_height(size.height());
- size_details->set_device_pixel_ratio(device_pixel_ratio);
-
- // TODO(dtrainor): Don't keep sending size events to the server. Wait for a
- // CompletionCallback to return before sending future size updates.
- outgoing_message_processor_->ProcessMessage(std::move(message),
- net::CompletionCallback());
-}
-
-void TabControlFeature::CreateTab(int tab_id) {
- TabControlMessage* tab_control;
- std::unique_ptr<BlimpMessage> message = CreateBlimpMessage(&tab_control);
- tab_control->mutable_create_tab();
- message->set_target_tab_id(tab_id);
- outgoing_message_processor_->ProcessMessage(std::move(message),
- net::CompletionCallback());
-}
-
-void TabControlFeature::CloseTab(int tab_id) {
- TabControlMessage* tab_control;
- std::unique_ptr<BlimpMessage> message = CreateBlimpMessage(&tab_control);
- tab_control->mutable_close_tab();
- message->set_target_tab_id(tab_id);
- outgoing_message_processor_->ProcessMessage(std::move(message),
- net::CompletionCallback());
-}
-
-void TabControlFeature::ProcessMessage(
- std::unique_ptr<BlimpMessage> message,
- const net::CompletionCallback& callback) {
- DCHECK(!callback.is_null());
- callback.Run(net::OK);
-
- NOTIMPLEMENTED();
-}
-
-} // namespace client
-} // namespace blimp
« no previous file with comments | « blimp/client/core/contents/tab_control_feature.h ('k') | blimp/client/core/contents/tab_control_feature_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698